Interface IInventoryContext
Used by VehicleComponent to override the Player's inventory context when mounted in a vehicle.
An inventory context can be overriden by setting InventoryContext or BuilderInventoryContext to the new inventory object that needs to be used.
The context is used by StorageComponent to read what contents are in the Player's inventories.
Ex. CraneToolComponent overrides it's vehicles BuilderInventoryContext with its own ClawInventory so StorageComponent will use the crane's builder inventory instead of the player's when mounted.
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public interface IInventoryContext
Properties
BuilderInventoryContext
The builders inventory context. Handles items that need to be picked up.
Declaration
BuilderInventory BuilderInventoryContext { get; set; }
Property Value
Type | Description |
---|---|
BuilderInventory |
InventoryContext
The toolbar inventory context. Handles ItemStacks and selecting.
Declaration
ToolbarInventory InventoryContext { get; set; }
Property Value
Type | Description |
---|---|
ToolbarInventory |