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:
30
SabreTools.Models/Internal/Feature.cs
Normal file
30
SabreTools.Models/Internal/Feature.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("feature"), XmlRoot("feature")]
|
||||
public class Feature : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
/// <remarks>(unemulated|imperfect)</remarks>
|
||||
public const string OverallKey = "overall";
|
||||
|
||||
/// <remarks>(unemulated|imperfect)</remarks>
|
||||
public const string StatusKey = "status";
|
||||
|
||||
/// <remarks>(protection|timing|graphics|palette|sound|capture|camera|microphone|controls|keyboard|mouse|media|disk|printer|tape|punch|drum|rom|comms|lan|wan)</remarks>
|
||||
public const string FeatureTypeKey = "type";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string ValueKey = "value";
|
||||
|
||||
#endregion
|
||||
|
||||
public Feature() => Type = ItemType.Feature;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user