mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Create skeleton of possible DatItem new version
This commit is contained in:
22
SabreTools.DatItems/DatItemDict.cs
Normal file
22
SabreTools.DatItems/DatItemDict.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user