Class SelectionStorageComponent
Generic selection storage
Inheritance
System.Object
SelectionStorageComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Eco.Gameplay.Components.Storage
Assembly: Eco.Gameplay.dll
Syntax
public class SelectionStorageComponent : InteractableStorage, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, ICanOverrideAuth, IHasEnvVars
Constructors
SelectionStorageComponent()
Declaration
public SelectionStorageComponent()
Properties
Inventory
Declaration
public override Inventory Inventory { get; }
Property Value
Type | Description |
---|---|
Inventory |
Overrides
Storage
Declaration
public Inventory Storage { get; }
Property Value
Type | Description |
---|---|
Inventory |
Methods
CreateInventory(Int32, Int32, InventoryRestriction[])
Need to be called when create object(in its Initialize) with this component
Declaration
public void CreateInventory(int numSlots, int maxWeight, params InventoryRestriction[] restrictions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numSlots | |
System.Int32 | maxWeight | |
InventoryRestriction[] | restrictions |
Implements
System.ComponentModel.INotifyPropertyChanged