Class WorldStockpileComponent
This stockpile has all its contents represented in the world as blocks (e.g. DirtBlock for dirt. Non-block items are represented as StockpileCrateBlocks).
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Eco.Gameplay.Components.Storage
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class WorldStockpileComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Remarks
Changes are synced in the world real time when the content of the stockpile's inventory changes.
Constructors
WorldStockpileComponent()
Declaration
public WorldStockpileComponent()
Properties
BlockContainerPosition
Declaration
public Vector3i BlockContainerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3i |
StockpilePosition
Declaration
public Vector3i StockpilePosition { get; }
Property Value
Type | Description |
---|---|
Vector3i |
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
OnAfterObjectMoved()
Declaration
public override void OnAfterObjectMoved()
Overrides
OnBeforeObjectMoved()
Declaration
public override void OnBeforeObjectMoved()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged