Add more passthrough DB methods

This commit is contained in:
Matt Nadareski
2025-01-14 22:34:58 -05:00
parent e7142a31ff
commit a1ad61f6da
4 changed files with 31 additions and 7 deletions

View File

@@ -282,6 +282,30 @@ namespace SabreTools.DatFiles
return Items.RemoveItem(key, value);
}
/// <summary>
/// Remove an item, returning if it could be removed
/// </summary>
public bool RemoveItemDB(long itemIndex)
{
return ItemsDB.RemoveItem(itemIndex);
}
/// <summary>
/// Remove a machine, returning if it could be removed
/// </summary>
public bool RemoveMachineDB(long machineIndex)
{
return ItemsDB.RemoveMachine(machineIndex);
}
/// <summary>
/// Remove a machine, returning if it could be removed
/// </summary>
public bool RemoveMachineDB(string machineName)
{
return ItemsDB.RemoveMachine(machineName);
}
/// <summary>
/// Reset the internal item dictionary
/// </summary>