diff --git a/SabreTools.DatItems/DatItemDict.cs b/SabreTools.DatItems/DatItemDict.cs new file mode 100644 index 00000000..1d9662d0 --- /dev/null +++ b/SabreTools.DatItems/DatItemDict.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; + +namespace SabreTools.DatItems +{ + /// + /// Format-agnostic representation of item data + /// + public class DatItemDict : Dictionary + { + #region Common Keys + + public const string NameKey = "name"; + + #endregion + + public string? Name + { + get => ContainsKey(NameKey) ? this[NameKey] as string : null; + set => this[NameKey] = value; + } + } +} \ No newline at end of file