Start adding currently-unused models

This commit is contained in:
Matt Nadareski
2023-07-11 23:39:54 -04:00
parent 18cb67a610
commit 3770b260c4
49 changed files with 1281 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("dataarea")]
public class DataArea
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("size")]
public long Size { get; set; }
/// <remarks>(8|16|32|64) "8"</remarks>
[XmlAttribute("width")]
public long? Width { get; set; }
/// <remarks>(big|little) "little"</remarks>
[XmlAttribute("endianness")]
public string? Endianness { get; set; }
[XmlElement("rom")]
public Rom[]? Rom { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("dipswitch")]
public class DipSwitch
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("tag")]
public string Tag { get; set; }
[XmlAttribute("mask")]
public string? Mask { get; set; }
[XmlElement("dipvalue")]
public DipValue[]? DipValue { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("dipvalue")]
public class DipValue
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("value")]
public string Value { get; set; }
/// <remarks>(yes|no) "no"</remarks>
[XmlAttribute("default")]
public string? Default { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("disk")]
public class Disk
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("sha1")]
public string? SHA1 { get; set; }
/// <remarks>(baddump|nodump|good) "good"</remarks>
[XmlAttribute("status")]
public string? Status { get; set; }
/// <remarks>(yes|no) "no"</remarks>
[XmlAttribute("writeable")]
public string? Writeable { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("diskarea")]
public class DiskArea
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlElement("disk")]
public Disk[]? Disk { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("feature")]
public class Feature
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("value")]
public string? Value { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("info")]
public class Info
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("value")]
public string? Value { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("part")]
public class Part
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("interface")]
public string Interface { get; set; }
[XmlElement("feature")]
public Feature[]? Feature { get; set; }
[XmlElement("dataarea")]
public DataArea[]? DataArea { get; set; }
[XmlElement("diskarea")]
public DiskArea[]? DiskArea { get; set; }
[XmlElement("dipswitch")]
public DipSwitch[]? DipSwitch { get; set; }
}
}

View File

@@ -0,0 +1,36 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("rom")]
public class Rom
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("size")]
public long Size { get; set; }
[XmlAttribute("crc")]
public string? CRC { get; set; }
[XmlAttribute("sha1")]
public string? SHA1 { get; set; }
/// <remarks>Numeric?</remarks>
[XmlAttribute("offset")]
public string? Offset { get; set; }
[XmlAttribute("value")]
public string? Value { get; set; }
/// <remarks>(baddump|nodump|good) "good"</remarks>
[XmlAttribute("status")]
public string? Status { get; set; }
/// <remarks>(load16_byte|load16_word|load16_word_swap|load32_byte|load32_word|load32_word_swap|load32_dword|load64_word|load64_word_swap|reload|fill|continue|reload_plain|ignore)</remarks>
[XmlAttribute("loadflag")]
public string? LoadFlag { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("sharedfeat")]
public class SharedFeat
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("value")]
public string? Value { get; set; }
}
}

View File

@@ -0,0 +1,40 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("software")]
public class Software
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("cloneof")]
public string? CloneOf { get; set; }
/// <remarks>(yes|partial|no) "yes"</remarks>
[XmlAttribute("supported")]
public string? Supported { get; set; }
[XmlElement("description")]
public string Description { get; set; }
[XmlElement("year")]
public string Year { get; set; }
[XmlElement("publisher")]
public string Publisher { get; set; }
[XmlElement("notes")]
public string? Notes { get; set; }
[XmlElement("info")]
public Info[]? Info { get; set; }
[XmlElement("sharedfeat")]
public SharedFeat[]? SharedFeat { get; set; }
[XmlElement("part")]
public Part[]? Part { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("softwarelist")]
public class SoftwareList
{
[XmlAttribute("name")]
public string Name { get; set; }
[XmlAttribute("description")]
public string? Description { get; set; }
[XmlElement("notes")]
public string? Notes { get; set; }
[XmlElement("software")]
public Software[] Software { get; set; }
}
}