Combine some tags

This commit is contained in:
Matt Nadareski
2020-09-08 10:12:41 -07:00
parent e34f50c464
commit f0afe33dd7
43 changed files with 106 additions and 160 deletions

View File

@@ -24,8 +24,7 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Represents a format-agnostic DAT
/// </summary>
[JsonObject("datfile")]
[XmlRoot("datfile")]
[JsonObject("datfile"), XmlRoot("datfile")]
public abstract class DatFile
{
#region Fields

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Represents all possible DAT header information
/// </summary>
[JsonObject("header")]
[XmlRoot("header")]
[JsonObject("header"), XmlRoot("header")]
public class DatHeader : ICloneable
{
#region Fields
@@ -153,8 +152,7 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Read or write format
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public DatFormat DatFormat { get; set; }
#endregion
@@ -267,8 +265,7 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Output the item name
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public bool UseRomName { get; set; }
#endregion
@@ -342,50 +339,43 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Text to prepend to all outputted lines
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public string Prefix { get; set; }
/// <summary>
/// Text to append to all outputted lines
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public string Postfix { get; set; }
/// <summary>
/// Add a new extension to all items
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public string AddExtension { get; set; }
/// <summary>
/// Replace all item extensions
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public string ReplaceExtension { get; set; }
/// <summary>
/// Remove all item extensions
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public bool RemoveExtension { get; set; }
/// <summary>
/// Output the machine name
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public bool GameName { get; set; }
/// <summary>
/// Wrap quotes around the entire line, sans prefix and postfix
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public bool Quotes { get; set; }
#endregion
@@ -395,15 +385,13 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Input depot information
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public DepotInformation InputDepot { get; set; }
/// <summary>
/// Output depot information
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public DepotInformation OutputDepot { get; set; }
#endregion

View File

@@ -5,6 +5,7 @@ using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Xml.Serialization;
using SabreTools.Library.Data;
using SabreTools.Library.DatItems;
@@ -18,7 +19,7 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Item dictionary with statistics, bucketing, and sorting
/// </summary>
[JsonObject("items")]
[JsonObject("items"), XmlRoot("items")]
public class ItemDictionary : IDictionary<string, List<DatItem>>
{
#region Private instance variables
@@ -48,6 +49,7 @@ namespace SabreTools.Library.DatFiles
/// Get the keys from the file dictionary
/// </summary>
/// <returns>List of the keys</returns>
[JsonIgnore, XmlIgnore]
public ICollection<string> Keys
{
get { return items.Keys; }
@@ -57,6 +59,7 @@ namespace SabreTools.Library.DatFiles
/// Get the keys in sorted order from the file dictionary
/// </summary>
/// <returns>List of the keys in sorted order</returns>
[JsonIgnore, XmlIgnore]
public List<string> SortedKeys
{
get
@@ -74,73 +77,73 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Overall item count
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long TotalCount { get; private set; } = 0;
/// <summary>
/// Number of Adjuster items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long AdjusterCount { get; private set; } = 0;
/// <summary>
/// Number of Analog items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long AnalogCount { get; private set; } = 0;
/// <summary>
/// Number of Archive items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long ArchiveCount { get; private set; } = 0;
/// <summary>
/// Number of BiosSet items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long BiosSetCount { get; private set; } = 0;
/// <summary>
/// Number of Chip items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long ChipCount { get; private set; } = 0;
/// <summary>
/// Number of top-level Condition items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long ConditionCount { get; private set; } = 0;
/// <summary>
/// Number of Configuration items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long ConfigurationCount { get; private set; } = 0;
/// <summary>
/// Number of DataArea items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DataAreaCount { get; private set; } = 0;
/// <summary>
/// Number of Device items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DeviceCount { get; private set; } = 0;
/// <summary>
/// Number of Device Reference items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DeviceReferenceCount { get; private set; } = 0;
/// <summary>
/// Number of DIP Switch items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DipSwitchCount { get; private set; } = 0;
/// <summary>
@@ -152,202 +155,202 @@ namespace SabreTools.Library.DatFiles
/// <summary>
/// Number of DiskArea items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DiskAreaCount { get; private set; } = 0;
/// <summary>
/// Number of Display items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DisplayCount { get; private set; } = 0;
/// <summary>
/// Number of Driver items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long DriverCount { get; private set; } = 0;
/// <summary>
/// Number of Feature items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long FeatureCount { get; private set; } = 0;
/// <summary>
/// Number of Info items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long InfoCount { get; private set; } = 0;
/// <summary>
/// Number of Input items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long InputCount { get; private set; } = 0;
/// <summary>
/// Number of Media items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long MediaCount { get; private set; } = 0;
/// <summary>
/// Number of Part items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long PartCount { get; private set; } = 0;
/// <summary>
/// Number of PartFeature items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long PartFeatureCount { get; private set; } = 0;
/// <summary>
/// Number of Port items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long PortCount { get; private set; } = 0;
/// <summary>
/// Number of RamOption items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long RamOptionCount { get; private set; } = 0;
/// <summary>
/// Number of Release items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long ReleaseCount { get; private set; } = 0;
/// <summary>
/// Number of Rom items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long RomCount { get; private set; } = 0;
/// <summary>
/// Number of Sample items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SampleCount { get; private set; } = 0;
/// <summary>
/// Number of SharedFeature items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SharedFeatureCount { get; private set; } = 0;
/// <summary>
/// Number of Slot items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SlotCount { get; private set; } = 0;
/// <summary>
/// Number of SoftwareList items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SoftwareListCount { get; private set; } = 0;
/// <summary>
/// Number of Sound items
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SoundCount { get; private set; } = 0;
/// <summary>
/// Number of machines
/// </summary>
/// <remarks>Special count only used by statistics output</remarks>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long GameCount { get; private set; } = 0;
/// <summary>
/// Total uncompressed size
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long TotalSize { get; private set; } = 0;
/// <summary>
/// Number of items with a CRC hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long CRCCount { get; private set; } = 0;
/// <summary>
/// Number of items with an MD5 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long MD5Count { get; private set; } = 0;
#if NET_FRAMEWORK
/// <summary>
/// Number of items with a RIPEMD160 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long RIPEMD160Count { get; private set; } = 0;
#endif
/// <summary>
/// Number of items with a SHA-1 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SHA1Count { get; private set; } = 0;
/// <summary>
/// Number of items with a SHA-256 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SHA256Count { get; private set; } = 0;
/// <summary>
/// Number of items with a SHA-384 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SHA384Count { get; private set; } = 0;
/// <summary>
/// Number of items with a SHA-512 hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SHA512Count { get; private set; } = 0;
/// <summary>
/// Number of items with a SpamSum fuzzy hash
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long SpamSumCount { get; private set; } = 0;
/// <summary>
/// Number of items with the baddump status
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long BaddumpCount { get; private set; } = 0;
/// <summary>
/// Number of items with the good status
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long GoodCount { get; private set; } = 0;
/// <summary>
/// Number of items with the nodump status
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long NodumpCount { get; private set; } = 0;
/// <summary>
/// Number of items with the remove flag
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long RemovedCount { get; private set; } = 0;
/// <summary>
/// Number of items with the verified status
/// </summary>
[JsonIgnore]
[JsonIgnore, XmlIgnore]
public long VerifiedCount { get; private set; } = 0;
#endregion

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which Adjuster(s) is associated with a set
/// </summary>
[JsonObject("adjuster")]
[XmlRoot("adjuster")]
[JsonObject("adjuster"), XmlRoot("adjuster")]
public class Adjuster : DatItem
{
#region Fields

View File

@@ -10,8 +10,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a single analog item
/// </summary>
[JsonObject("analog")]
[XmlRoot("analog")]
[JsonObject("analog"), XmlRoot("analog")]
public class Analog : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents generic archive files to be included in a set
/// </summary>
[JsonObject("archive")]
[XmlRoot("archive")]
[JsonObject("archive"), XmlRoot("archive")]
public class Archive : DatItem
{
#region Fields

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents the OpenMSX original value
/// </summary>
[JsonObject("original")]
[XmlRoot("original")]
[JsonObject("original"), XmlRoot("original")]
public class Original
{
[JsonProperty("value")]

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which BIOS(es) is associated with a set
/// </summary>
[JsonObject("biosset")]
[XmlRoot("biosset")]
[JsonObject("biosset"), XmlRoot("biosset")]
public class BiosSet : DatItem
{
#region Fields

View File

@@ -7,8 +7,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a blank set from an input DAT
/// </summary>
[JsonObject("blank")]
[XmlRoot("blank")]
[JsonObject("blank"), XmlRoot("blank")]
public class Blank : DatItem
{
#region Constructors

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which Chip(s) is associated with a set
/// </summary>
[JsonObject("chip")]
[XmlRoot("chip")]
[JsonObject("chip"), XmlRoot("chip")]
public class Chip : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a condition on a machine or other item
/// </summary>
[JsonObject("condition")]
[XmlRoot("condition")]
[JsonObject("condition"), XmlRoot("condition")]
public class Condition : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which Configuration(s) is associated with a set
/// </summary>
[JsonObject("configuration")]
[XmlRoot("configuration")]
[JsonObject("configuration"), XmlRoot("configuration")]
public class Configuration : DatItem
{
#region Fields

View File

@@ -13,8 +13,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents control for an input
/// </summary>
[JsonObject("control")]
[XmlRoot("control")]
[JsonObject("control"), XmlRoot("control")]
public class Control : DatItem
{
#region Fields

View File

@@ -17,8 +17,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Base class for all items included in a set
/// </summary>
[JsonObject("datitem")]
[XmlRoot("datitem")]
[JsonObject("datitem"), XmlRoot("datitem")]
[XmlInclude(typeof(Adjuster))]
[XmlInclude(typeof(Analog))]
[XmlInclude(typeof(Archive))]
@@ -73,8 +72,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Duplicate type when compared to another item
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public DupeType DupeType { get; set; }
#endregion
@@ -84,8 +82,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Machine values
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public Machine Machine { get; set; } = new Machine();
#endregion
@@ -95,15 +92,13 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Source information
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public Source Source { get; set; } = new Source();
/// <summary>
/// Flag if item should be removed
/// </summary>
[JsonIgnore]
[XmlIgnore]
[JsonIgnore, XmlIgnore]
public bool Remove { get; set; }
#endregion

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// SoftwareList dataarea information
/// </summary>
/// <remarks>One DataArea can contain multiple Rom items</remarks>
[JsonObject("dataarea")]
[XmlRoot("dataarea")]
[JsonObject("dataarea"), XmlRoot("dataarea")]
public class DataArea : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a single device on the machine
/// </summary>
[JsonObject("device")]
[XmlRoot("device")]
[JsonObject("device"), XmlRoot("device")]
public class Device : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which Device Reference(s) is associated with a set
/// </summary>
[JsonObject("device_ref")]
[XmlRoot("device_ref")]
[JsonObject("device_ref"), XmlRoot("device_ref")]
public class DeviceReference : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which DIP Switch(es) is associated with a set
/// </summary>
[JsonObject("dipswitch")]
[XmlRoot("dipswitch")]
[JsonObject("dipswitch"), XmlRoot("dipswitch")]
public class DipSwitch : DatItem
{
#region Fields

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents Compressed Hunks of Data (CHD) formatted disks which use internal hashes
/// </summary>
[JsonObject("disk")]
[XmlRoot("disk")]
[JsonObject("disk"), XmlRoot("disk")]
public class Disk : DatItem
{
#region Private instance variables

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// SoftwareList diskarea information
/// </summary>
/// <remarks>One DiskArea can contain multiple Disk items</remarks>
[JsonObject("diskarea")]
[XmlRoot("diskarea")]
[JsonObject("diskarea"), XmlRoot("diskarea")]
public class DiskArea : DatItem
{
#region Fields

View File

@@ -13,8 +13,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one machine display
/// </summary>
[JsonObject("display")]
[XmlRoot("display")]
[JsonObject("display"), XmlRoot("display")]
public class Display : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents the a driver of the machine
/// </summary>
[JsonObject("driver")]
[XmlRoot("driver")]
[JsonObject("driver"), XmlRoot("driver")]
public class Driver : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a matchable extension
/// </summary>
[JsonObject("extension")]
[XmlRoot("extension")]
[JsonObject("extension"), XmlRoot("extension")]
public class Extension : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents the a feature of the machine
/// </summary>
[JsonObject("feature")]
[XmlRoot("feature")]
[JsonObject("feature"), XmlRoot("feature")]
public class Feature : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents special information about a machine
/// </summary>
[JsonObject("info")]
[XmlRoot("info")]
[JsonObject("info"), XmlRoot("info")]
public class Info : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML input
/// </summary>
[JsonObject("input")]
[XmlRoot("input")]
[JsonObject("input"), XmlRoot("input")]
public class Input : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a single instance of another item
/// </summary>
[JsonObject("instance")]
[XmlRoot("instance")]
[JsonObject("instance"), XmlRoot("instance")]
public class Instance : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one conflocation or diplocation
/// </summary>
[JsonObject("location")]
[XmlRoot("location")]
[JsonObject("location"), XmlRoot("location")]
public class Location : DatItem
{
#region Fields

View File

@@ -13,8 +13,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents the information specific to a set/game/machine
/// </summary>
[JsonObject("machine")]
[XmlRoot("machine")]
[JsonObject("machine"), XmlRoot("machine")]
public class Machine : ICloneable
{
#region Fields

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents Aaruformat images which use internal hashes
/// </summary>
[JsonObject("media")]
[XmlRoot("media")]
[JsonObject("media"), XmlRoot("media")]
public class Media : DatItem
{
#region Private instance variables

View File

@@ -14,8 +14,7 @@ namespace SabreTools.Library.DatItems
/// SoftwareList part information
/// </summary>
/// <remarks>One Part can contain multiple PartFeature, DataArea, DiskArea, and DipSwitch items</remarks>
[JsonObject("part")]
[XmlRoot("part")]
[JsonObject("part"), XmlRoot("part")]
public class Part : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one part feature object
/// </summary>
[JsonObject("part_feature")]
[XmlRoot("part_feature")]
[JsonObject("part_feature"), XmlRoot("part_feature")]
public class PartFeature : DatItem
{
#region Fields

View File

@@ -10,8 +10,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a single port on a machine
/// </summary>
[JsonObject("port")]
[XmlRoot("port")]
[JsonObject("port"), XmlRoot("port")]
public class Port : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which RAM option(s) is associated with a set
/// </summary>
[JsonObject("ramoption")]
[XmlRoot("ramoption")]
[JsonObject("ramoption"), XmlRoot("ramoption")]
public class RamOption : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents release information about a set
/// </summary>
[JsonObject("release")]
[XmlRoot("release")]
[JsonObject("release"), XmlRoot("release")]
public class Release : DatItem
{
#region Fields

View File

@@ -17,8 +17,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a generic file within a set
/// </summary>
[JsonObject("rom")]
[XmlRoot("rom")]
[JsonObject("rom"), XmlRoot("rom")]
public class Rom : DatItem
{
#region Private instance variables

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents a (usually WAV-formatted) sample to be included for use in the set
/// </summary>
[JsonObject("sample")]
[XmlRoot("sample")]
[JsonObject("sample"), XmlRoot("sample")]
public class Sample : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML confsetting or dipvalue
/// </summary>
[JsonObject("setting")]
[XmlRoot("setting")]
[JsonObject("setting"), XmlRoot("setting")]
public class Setting : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one shared feature object
/// </summary>
[JsonObject("sharedfeat")]
[XmlRoot("sharedfeat")]
[JsonObject("sharedfeat"), XmlRoot("sharedfeat")]
public class SharedFeature : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which Slot(s) is associated with a set
/// </summary>
[JsonObject("slot")]
[XmlRoot("slot")]
[JsonObject("slot"), XmlRoot("slot")]
public class Slot : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents one ListXML slotoption
/// </summary>
[JsonObject("slotoption")]
[XmlRoot("slotoption")]
[JsonObject("slotoption"), XmlRoot("slotoption")]
public class SlotOption : DatItem
{
#region Fields

View File

@@ -13,8 +13,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents which SoftwareList(s) is associated with a set
/// </summary>
[JsonObject("softwarelist")]
[XmlRoot("softwarelist")]
[JsonObject("softwarelist"), XmlRoot("softwarelist")]
public class SoftwareList : DatItem
{
#region Fields

View File

@@ -12,8 +12,7 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Represents the sound output for a machine
/// </summary>
[JsonObject("sound")]
[XmlRoot("sound")]
[JsonObject("sound"), XmlRoot("sound")]
public class Sound : DatItem
{
#region Fields