using System.Xml; using System.Xml.Serialization; namespace SabreTools.Models.Logiqx { [XmlRoot("datafile")] public class Datafile { [XmlAttribute("build")] public string? Build { get; set; } /// (yes|no) "no" [XmlAttribute("debug")] public string? Debug { get; set; } [XmlElement("header")] public Header? Header { get; set; } [XmlElement("game", typeof(Game))] [XmlElement("machine", typeof(Machine))] public GameBase[]? Game { get; set; } #region No-Intro Extensions /// Appears after Debug [XmlAttribute(Namespace = "http://www.w3.org/2001/XMLSchema-instance", AttributeName = "schemaLocation")] public string? SchemaLocation { get; set; } #endregion #region RomVault Extensions [XmlElement("dir")] public Dir[]? Dir { get; set; } #endregion #region DO NOT USE IN PRODUCTION /// Should be empty [XmlAnyAttribute] public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; } /// Should be empty [XmlAnyElement] public object[]? ADDITIONAL_ELEMENTS { get; set; } #endregion } }