mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add dictionary reset helper method
This commit is contained in:
@@ -34,13 +34,13 @@ namespace SabreTools.DatFiles
|
||||
/// DatItems and related statistics
|
||||
/// </summary>
|
||||
[JsonProperty("items"), XmlElement("items")]
|
||||
public ItemDictionary Items { get; set; } = [];
|
||||
public ItemDictionary Items { get; private set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// DatItems and related statistics
|
||||
/// </summary>
|
||||
[JsonProperty("items"), XmlElement("items")]
|
||||
public ItemDictionaryDB ItemsDB { get; set; } = new ItemDictionaryDB();
|
||||
public ItemDictionaryDB ItemsDB { get; private set; } = new ItemDictionaryDB();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -155,6 +155,19 @@ namespace SabreTools.DatFiles
|
||||
|
||||
#endregion
|
||||
|
||||
#region
|
||||
|
||||
/// <summary>
|
||||
/// Reset the internal item dictionary
|
||||
/// </summary>
|
||||
public void ResetDictionary()
|
||||
{
|
||||
Items = [];
|
||||
ItemsDB = new ItemDictionaryDB();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Filtering
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user