Found out why these helpers were this way

This commit is contained in:
Matt Nadareski
2026-04-18 12:45:58 -04:00
parent 9a59f7c540
commit fe58061a2d
6 changed files with 47 additions and 28 deletions

View File

@@ -535,6 +535,12 @@ namespace SabreTools.Metadata.DatFiles
/// </summary>
public DatItem? GetItem(long index) => _items.Get(index);
/// <summary>
/// Get the internal item table
/// </summary>
/// TODO: Figure out if this can be removed
public IDictionary<long, DatItem> GetItems() => _items.Table;
/// <summary>
/// Get the indices and items associated with a bucket name
/// </summary>
@@ -584,9 +590,10 @@ namespace SabreTools.Metadata.DatFiles
}
/// <summary>
/// Get all machines and their indicies
/// Get the internal machine table
/// </summary>
public Machine[] GetMachines() => _machines.Values;
/// TODO: Figure out if this can be removed
public IDictionary<long, Machine> GetMachines() => _machines.Table;
/// <summary>
/// Get a source based on the index
@@ -599,6 +606,12 @@ namespace SabreTools.Metadata.DatFiles
return new KeyValuePair<long, Source?>(index, source);
}
/// <summary>
/// Get the internal source table
/// </summary>
/// TODO: Figure out if this can be removed
public IDictionary<long, Source> GetSources() => _sources.Table;
/// <summary>
/// Remove a key from the file dictionary if it exists
/// </summary>