Use DictionaryBase for setters

This commit is contained in:
Matt Nadareski
2024-03-05 02:20:12 -05:00
parent 539e4367e0
commit 2b2aa5aff8
47 changed files with 845 additions and 796 deletions

View File

@@ -371,6 +371,8 @@ namespace SabreTools.DatItems
#endregion
// TODO: These should not take a field enum
// TODO: These should be item-specific for better filtering
#region Manipulation
/// <summary>
@@ -380,6 +382,15 @@ namespace SabreTools.DatItems
/// <returns>True if the removal was successful, false otherwise</returns>
public abstract bool RemoveField(DatItemField datItemField);
/// <summary>
/// Set a field in the DatItem from a mapping string
/// </summary>
/// <param name="machineField">Item field to set</param>
/// <param name="value">String representing the value to set</param>
/// <returns>True if the setting was successful, false otherwise</returns>
/// <remarks>This only performs minimal validation before setting</remarks>
public abstract bool SetField(DatItemField datItemField, string value);
#endregion
#region Sorting and Merging