using System.Xml.Serialization; using Newtonsoft.Json; namespace SabreTools.DatItems.Formats { /// /// Represents the sound output for a machine /// [JsonObject("sound"), XmlRoot("sound")] public sealed class Sound : DatItem { #region Fields /// /> protected override ItemType ItemType => ItemType.Sound; /// /> protected override string? NameKey => null; #endregion #region Constructors public Sound() : base() { } public Sound(Models.Metadata.Sound item) : base(item) { // Process flag values if (GetInt64FieldValue(Models.Metadata.Sound.ChannelsKey) != null) SetFieldValue(Models.Metadata.Sound.ChannelsKey, GetInt64FieldValue(Models.Metadata.Sound.ChannelsKey).ToString()); } #endregion } }