mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Start creating Dictionary-based internal models
This commit is contained in:
33
SabreTools.Models/Internal/Part.cs
Normal file
33
SabreTools.Models/Internal/Part.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("part"), XmlRoot("part")]
|
||||
public class Part : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>DataArea[]</remarks>
|
||||
public const string DataAreaKey = "dataarea";
|
||||
|
||||
/// <remarks>DiskArea[]</remarks>
|
||||
public const string DiskAreaKey = "diskarea";
|
||||
|
||||
/// <remarks>DipSwitch[]</remarks>
|
||||
public const string DipSwitchKey = "dipswitch";
|
||||
|
||||
/// <remarks>Feature[]</remarks>
|
||||
public const string FeatureKey = "feature";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string InterfaceKey = "interface";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
#endregion
|
||||
|
||||
public Part() => Type = ItemType.Part;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user