using System.Xml;
using System.Xml.Serialization;
using SabreTools.Data.Models.Metadata;

namespace SabreTools.Data.Models.Listxml
{
    [XmlRoot("chip")]
    public class Chip
    {
        [Required]
        [XmlAttribute("name")]
        public string? Name { get; set; }

        [XmlAttribute("tag")]
        public string? Tag { get; set; }

        /// <remarks>(cpu|audio)</remarks>
        [Required]
        [XmlAttribute("type")]
        public ChipType? Type { get; set; }

        /// <remarks>Only present in older versions</remarks>
        [XmlAttribute("soundonly")]
        public bool? SoundOnly { get; set; }

        [XmlAttribute("clock")]
        public long? Clock { get; set; }
    }
}
