Files
SabreTools/SabreTools.DatItems/DatItemDict.cs
2023-07-30 21:42:57 -04:00

22 lines
487 B
C#

using System.Collections.Generic;
namespace SabreTools.DatItems
{
/// <summary>
/// Format-agnostic representation of item data
/// </summary>
public class DatItemDict : Dictionary<string, object>
{
#region Common Keys
public const string NameKey = "name";
#endregion
public string? Name
{
get => ContainsKey(NameKey) ? this[NameKey] as string : null;
set => this[NameKey] = value;
}
}
}