Promote Adjuster, RamOption

This commit is contained in:
Matt Nadareski
2020-09-01 11:34:52 -07:00
parent 7c8bee8e12
commit 4204cf8457
14 changed files with 948 additions and 395 deletions

View File

@@ -11,23 +11,6 @@ namespace SabreTools.Library.DatItems
#region ListXML
/// <summary>
/// Represents one ListXML adjuster
/// </summary>
/// TODO: Promote to DatItem level
[JsonObject("adjuster")]
public class ListXmlAdjuster
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("default")]
public bool? Default { get; set; }
[JsonProperty("conditions")]
public List<ListXmlCondition> Conditions { get; set; }
}
/// <summary>
/// Represents one ListXML analog
/// </summary>
@@ -41,6 +24,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML condition
/// </summary>
/// TODO: Promote to DatItem level? (Both used at ListXML level AND under a lot of stuff)
[JsonObject("condition")]
public class ListXmlCondition
{
@@ -60,7 +44,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML configuration
/// </summary>
/// TODO: Promote to DatItem level
/// TODO: Promote to DatItem level (contains lists)
[JsonObject("configuration")]
public class ListXmlConfiguration
{
@@ -73,6 +57,9 @@ namespace SabreTools.Library.DatItems
[JsonProperty("mask")]
public string Mask { get; set; }
[JsonProperty("conditions")]
public List<ListXmlCondition> Conditions { get; set; }
[JsonProperty("locations")]
public List<ListXmlConfLocation> Locations { get; set; }
@@ -110,6 +97,9 @@ namespace SabreTools.Library.DatItems
[JsonProperty("default")]
public bool? Default { get; set; }
[JsonProperty("conditions")]
public List<ListXmlCondition> Conditions { get; set; }
}
/// <summary>
@@ -158,7 +148,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML device
/// </summary>
/// TODO: Promote to DatItem level (doesn't have "name" field?)
/// TODO: Promote to DatItem level (doesn't have "name" field?) (contains list)
[JsonObject("device")]
public class ListXmlDevice
{
@@ -238,7 +228,7 @@ namespace SabreTools.Library.DatItems
/// Represents one ListXML dipswitch
/// </summary>
/// <remarks>Also used by SoftwareList</remarks>
/// TODO: Promote to DatItem level
/// TODO: Promote to DatItem level (contains list)
[JsonObject("dipswitch")]
public class ListXmlDipSwitch
{
@@ -251,6 +241,9 @@ namespace SabreTools.Library.DatItems
[JsonProperty("mask")]
public string Mask { get; set; }
[JsonProperty("conditions")]
public List<ListXmlCondition> Conditions { get; set; }
[JsonProperty("locations")]
public List<ListXmlDipLocation> Locations { get; set; }
@@ -289,6 +282,9 @@ namespace SabreTools.Library.DatItems
[JsonProperty("default")]
public bool? Default { get; set; }
[JsonProperty("conditions")]
public List<ListXmlCondition> Conditions { get; set; }
}
/// <summary>
@@ -341,7 +337,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML input
/// </summary>
/// TODO: Promote to DatItem level (doesn't have "name" field?)
/// TODO: Promote to DatItem level (doesn't have "name" field?) (contains list)
[JsonObject("input")]
public class ListXmlInput
{
@@ -377,7 +373,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML port
/// </summary>
/// TODO: Promote to DatItem level (doesn't have "name" field?)
/// TODO: Promote to DatItem level (doesn't have "name" field?) (contains list)
[JsonObject("port")]
public class ListXmlPort
{
@@ -388,21 +384,10 @@ namespace SabreTools.Library.DatItems
public List<ListXmlAnalog> Analogs { get; set; }
}
/// <summary>
/// Represents one ListXML ramoption
/// </summary>
/// TODO: Promote to DatItem level (doesn't have "name" field?)
[JsonObject("ramoption")]
public class ListXmlRamOption
{
[JsonProperty("default")]
public bool? Default { get; set; }
}
/// <summary>
/// Represents one ListXML slot
/// </summary>
/// TODO: Promote to DatItem level
/// TODO: Promote to DatItem level (contains list)
[JsonObject("slot")]
public class ListXmlSlot
{