mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Use DictionaryBase for setters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user