From 402aaccfec70d80889517b7b980110d3fbfca2b7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 30 Jul 2023 21:42:57 -0400 Subject: [PATCH] Create skeleton of possible DatItem new version --- SabreTools.DatItems/DatItemDict.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SabreTools.DatItems/DatItemDict.cs 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