Class ConsolidationUtils
Class used to consolidate storages (order inventories by type, quantity and quality).
Inheritance
System.Object
ConsolidationUtils
Namespace: Eco.Gameplay.Items.InventoryRelated
Assembly: Eco.Gameplay.dll
Syntax
public static class ConsolidationUtils : Object
Methods
ConsolidateInventory(Inventory, User)
Consolidate inventory items into least amount of stacks.
Declaration
public static Result ConsolidateInventory(Inventory inventory, User user = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Inventory | inventory | |
| User | user |
Returns
| Type | Description |
|---|---|
| Result |