Files
SabreTools/SabreTools.Models/Logiqx/Datafile.cs

50 lines
1.3 KiB
C#
Raw Normal View History

2023-07-12 10:40:21 -04:00
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.Logiqx
{
[XmlRoot("datafile")]
public class Datafile
{
[XmlAttribute("build")]
public string? Build { get; set; }
/// <remarks>(yes|no) "no"</remarks>
[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; }
2023-07-12 10:40:21 -04:00
#region No-Intro Extensions
/// <remarks>Appears after Debug</remarks>
[XmlAttribute(Namespace = "http://www.w3.org/2001/XMLSchema-instance", AttributeName = "schemaLocation")]
public string? SchemaLocation { get; set; }
#endregion
2023-07-12 10:40:21 -04:00
#region RomVault Extensions
[XmlElement("dir")]
2023-07-12 10:40:21 -04:00
public Dir[]? Dir { get; set; }
#endregion
#region DO NOT USE IN PRODUCTION
/// <remarks>Should be empty</remarks>
[XmlAnyAttribute]
public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; }
/// <remarks>Should be empty</remarks>
[XmlAnyElement]
public object[]? ADDITIONAL_ELEMENTS { get; set; }
#endregion
2023-07-12 10:40:21 -04:00
}
}