Class InventoryComponent
Inventory components track an attribute of an inventory, such as weight
restrictions may use components to handle valid item destinations
Inheritance
System.Object
InventoryComponent
Assembly: Eco.Gameplay.dll
Syntax
public abstract class InventoryComponent : Object, IController, IViewController, IHasUniversalID
Constructors
InventoryComponent()
Declaration
protected InventoryComponent()
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
ApplyChange(Item, Int32)
Declaration
public abstract void ApplyChange(Item item, int quantityDelta)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| System.Int32 |
quantityDelta |
|
EndChangeSetModification(Boolean)
Declaration
public abstract void EndChangeSetModification(bool successful)
Parameters
| Type |
Name |
Description |
| System.Boolean |
successful |
|
Initialize(Inventory)
Declaration
public abstract void Initialize(Inventory inventory)
Parameters
Implements
Extension Methods