diff --git a/SabreTools.DatFiles/ItemDictionary.cs b/SabreTools.DatFiles/ItemDictionary.cs index 7c075555..cbc568b9 100644 --- a/SabreTools.DatFiles/ItemDictionary.cs +++ b/SabreTools.DatFiles/ItemDictionary.cs @@ -17,6 +17,10 @@ namespace SabreTools.DatFiles /// /// Item dictionary with statistics, bucketing, and sorting /// + /// + /// TODO: Make this into a database model instead of just an in-memory object + /// This will help handle extremely large sets + /// [JsonObject("items"), XmlRoot("items")] public class ItemDictionary : IDictionary> { diff --git a/SabreTools.DatItems/DatItem.cs b/SabreTools.DatItems/DatItem.cs index 50512d64..d3adb4ed 100644 --- a/SabreTools.DatItems/DatItem.cs +++ b/SabreTools.DatItems/DatItem.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Serialization; @@ -18,6 +17,9 @@ namespace SabreTools.DatItems /// /// Base class for all items included in a set /// + /// + /// TODO: Can this be made into a `record` type for easier comparison? + /// [JsonObject("datitem"), XmlRoot("datitem")] [XmlInclude(typeof(Adjuster))] [XmlInclude(typeof(Analog))] @@ -260,6 +262,7 @@ namespace SabreTools.DatItems #region Comparision Methods + /// public int CompareTo(DatItem other) { try @@ -279,7 +282,7 @@ namespace SabreTools.DatItems /// Determine if an item is a duplicate using partial matching logic /// /// DatItem to use as a baseline - /// True if the roms are duplicates, false otherwise + /// True if the items are duplicates, false otherwise public abstract bool Equals(DatItem other); ///