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/DataArea.cs
Normal file
30
SabreTools.Models/Internal/DataArea.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("dataarea"), XmlRoot("dataarea")]
|
||||
public class DataArea : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>(big|little) "little"</remarks>
|
||||
public const string EndiannessKey = "endianness";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
/// <remarks>Rom[]</remarks>
|
||||
public const string RomKey = "rom";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string SizeKey = "size";
|
||||
|
||||
/// <remarks>(8|16|32|64) "8"</remarks>
|
||||
public const string WidthKey = "width";
|
||||
|
||||
#endregion
|
||||
|
||||
public DataArea() => Type = ItemType.DataArea;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user