Small cleanup
This commit is contained in:
@@ -7,14 +7,6 @@ namespace AetherBags.Inventory.Scanning;
|
|||||||
|
|
||||||
public static unsafe class InventoryScanner
|
public static unsafe class InventoryScanner
|
||||||
{
|
{
|
||||||
private static readonly InventoryType[] BagInventories =
|
|
||||||
[
|
|
||||||
InventoryType.Inventory1,
|
|
||||||
InventoryType.Inventory2,
|
|
||||||
InventoryType.Inventory3,
|
|
||||||
InventoryType.Inventory4,
|
|
||||||
];
|
|
||||||
|
|
||||||
public static readonly InventoryType[] StandardInventories =
|
public static readonly InventoryType[] StandardInventories =
|
||||||
[
|
[
|
||||||
InventoryType.Inventory1,
|
InventoryType.Inventory1,
|
||||||
@@ -47,15 +39,8 @@ public static unsafe class InventoryScanner
|
|||||||
public static ulong MakeNaturalSlotKey(InventoryType container, int slot)
|
public static ulong MakeNaturalSlotKey(InventoryType container, int slot)
|
||||||
=> ((ulong)(uint)container << 32) | (uint)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(
|
public static void ScanInventories(
|
||||||
FFXIVClientStructs.FFXIV.Client.Game.InventoryManager* inventoryManager,
|
InventoryManager* inventoryManager,
|
||||||
InventoryStackMode stackMode,
|
InventoryStackMode stackMode,
|
||||||
Dictionary<ulong, AggregatedItem> aggByKey,
|
Dictionary<ulong, AggregatedItem> aggByKey,
|
||||||
InventorySourceType source)
|
InventorySourceType source)
|
||||||
@@ -195,10 +180,6 @@ public static unsafe class InventoryScanner
|
|||||||
return InventoryLocation.Invalid;
|
return InventoryLocation.Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backwards compability TODO: Remove
|
|
||||||
public static string GetEmptyItemSlotsString()
|
|
||||||
=> GetEmptySlotsString(InventorySourceType. MainBags);
|
|
||||||
|
|
||||||
public static string GetEmptySlotsString(InventorySourceType source)
|
public static string GetEmptySlotsString(InventorySourceType source)
|
||||||
{
|
{
|
||||||
int total = InventorySourceDefinitions.GetTotalSlots(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)
|
public static IReadOnlyList<CurrencyInfo> GetCurrencyInfoList(uint[] currencyIds)
|
||||||
=> CurrencyState.GetCurrencyInfoList(currencyIds);
|
=> CurrencyState.GetCurrencyInfoList(currencyIds);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user