ItemDictionary is no longer IDictionary

This commit is contained in:
Matt Nadareski
2025-01-14 10:38:46 -05:00
parent b29f7c65a4
commit 8c3c6ab3e8
8 changed files with 36 additions and 126 deletions

View File

@@ -29,7 +29,7 @@ namespace SabreTools.DatFiles
/// DatItems and related statistics
/// </summary>
[JsonProperty("items"), XmlElement("items")]
public ItemDictionary Items { get; private set; } = [];
public ItemDictionary Items { get; private set; } = new ItemDictionary();
/// <summary>
/// DatItems and related statistics
@@ -252,7 +252,7 @@ namespace SabreTools.DatFiles
/// </summary>
public void ResetDictionary()
{
Items.Clear();
Items = new ItemDictionary();
ItemsDB = new ItemDictionaryDB();
}