2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Metadata
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
[JsonObject("dataarea"), XmlRoot("dataarea")]
|
|
|
|
|
public class DataArea : DatItem
|
|
|
|
|
{
|
2026-04-01 13:18:45 -04:00
|
|
|
#region Properties
|
|
|
|
|
|
2026-04-02 02:18:08 -04:00
|
|
|
/// <remarks>(big|little) "little"</remarks>
|
|
|
|
|
public Endianness? Endianness { get; set; }
|
|
|
|
|
|
2026-04-01 13:18:45 -04:00
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
2026-04-02 23:45:17 -04:00
|
|
|
public long? Size { get; set; }
|
|
|
|
|
|
2026-04-01 13:18:45 -04:00
|
|
|
#endregion
|
|
|
|
|
|
2025-09-26 10:20:48 -04:00
|
|
|
#region Keys
|
|
|
|
|
|
|
|
|
|
/// <remarks>Rom[]</remarks>
|
|
|
|
|
[NoFilter]
|
|
|
|
|
public const string RomKey = "rom";
|
|
|
|
|
|
|
|
|
|
/// <remarks>(8|16|32|64) "8"</remarks>
|
2026-04-02 02:18:08 -04:00
|
|
|
/// TODO: Convert to enum
|
2025-09-26 10:20:48 -04:00
|
|
|
public const string WidthKey = "width";
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2026-04-01 11:24:33 -04:00
|
|
|
public DataArea() => ItemType = ItemType.DataArea;
|
2025-09-26 10:20:48 -04:00
|
|
|
}
|
|
|
|
|
}
|