Start creating Dictionary-based internal models

This commit is contained in:
Matt Nadareski
2023-08-01 23:18:53 -04:00
parent 8a56f8fd11
commit 7d4d69bbb8
55 changed files with 1613 additions and 39 deletions

View File

@@ -0,0 +1,57 @@
using System.Xml.Serialization;
using Newtonsoft.Json;
namespace SabreTools.Models.Internal
{
[JsonObject("display"), XmlRoot("display")]
public class Display : DatItem
{
#region Keys
/// <remarks>(yes|no) "no"</remarks>
public const string FlipXKey = "flipx";
/// <remarks>long</remarks>
public const string HBEndKey = "hbend";
/// <remarks>long</remarks>
public const string HBStart = "hbstart";
/// <remarks>long</remarks>
public const string HeightKey = "height";
/// <remarks>long</remarks>
public const string HTotalKey = "htotal";
/// <remarks>long</remarks>
public const string PixClockKey = "pixclock";
/// <remarks>double</remarks>
public const string RefreshKey = "refresh";
/// <remarks>(0|90|180|270)</remarks>
public const string RotateKey = "rotate";
/// <remarks>string</remarks>
public const string TagKey = "tag";
/// <remarks>(raster|vector|lcd|svg|unknown)</remarks>
public const string DisplayTypeKey = "type";
/// <remarks>long</remarks>
public const string VBEndKey = "vbend";
/// <remarks>long</remarks>
public const string VBStartKey = "vbstart";
/// <remarks>long</remarks>
public const string VTotalKey = "vtotal";
/// <remarks>long</remarks>
public const string WidthKey = "width";
#endregion
public Display() => Type = ItemType.Display;
}
}