Small cleanup

This commit is contained in:
Zeffuro
2026-01-02 13:45:21 +01:00
parent f87ec829b6
commit 120fcf00cf
2 changed files with 1 additions and 23 deletions
@@ -7,14 +7,6 @@ namespace AetherBags.Inventory.Scanning;
public static unsafe class InventoryScanner
{
private static readonly InventoryType[] BagInventories =
[
InventoryType.Inventory1,
InventoryType.Inventory2,
InventoryType.Inventory3,
InventoryType.Inventory4,
];
public static readonly InventoryType[] StandardInventories =
[
InventoryType.Inventory1,
@@ -47,15 +39,8 @@ public static unsafe class InventoryScanner
public static ulong MakeNaturalSlotKey(InventoryType container, int slot)
=> ((ulong)(uint)container << 32) | (uint)slot;
// Backwards compatible TODO: Remove
public static void ScanBags(
FFXIVClientStructs.FFXIV.Client.Game.InventoryManager* inventoryManager,
InventoryStackMode stackMode,
Dictionary<ulong, AggregatedItem> aggByKey)
=> ScanInventories(inventoryManager, stackMode, aggByKey, InventorySourceType.MainBags);
public static void ScanInventories(
FFXIVClientStructs.FFXIV.Client.Game.InventoryManager* inventoryManager,
InventoryManager* inventoryManager,
InventoryStackMode stackMode,
Dictionary<ulong, AggregatedItem> aggByKey,
InventorySourceType source)
@@ -195,10 +180,6 @@ public static unsafe class InventoryScanner
return InventoryLocation.Invalid;
}
// Backwards compability TODO: Remove
public static string GetEmptyItemSlotsString()
=> GetEmptySlotsString(InventorySourceType. MainBags);
public static string GetEmptySlotsString(InventorySourceType source)
{
int total = InventorySourceDefinitions.GetTotalSlots(source);
@@ -67,9 +67,6 @@ public static unsafe class InventoryState
};
}
public static string GetEmptyItemSlotsString()
=> InventoryScanner.GetEmptyItemSlotsString();
public static IReadOnlyList<CurrencyInfo> GetCurrencyInfoList(uint[] currencyIds)
=> CurrencyState.GetCurrencyInfoList(currencyIds);