Class PublicStorageComponent
Inheritance
System.Object
PublicStorageComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class PublicStorageComponent : InteractableStorage, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, ICanOverrideAuth, IHasEnvVars
Constructors
PublicStorageComponent()
Declaration
public PublicStorageComponent()
PublicStorageComponent(Int32)
Declaration
public PublicStorageComponent(int numSlots)
Parameters
Type |
Name |
Description |
System.Int32 |
numSlots |
|
PublicStorageComponent(Int32, Int32)
Declaration
public PublicStorageComponent(int numSlots, int maxWeight)
Parameters
Type |
Name |
Description |
System.Int32 |
numSlots |
|
System.Int32 |
maxWeight |
|
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
Inventory
Declaration
public override Inventory Inventory { get; }
Property Value
Overrides
ShelfLifeMultiplier
Some specialized objects (like refrigerator) are designed to preserve food for a certain amount (shelf life and time remaining increase by this multiplier)
Declaration
public float ShelfLifeMultiplier { get; set; }
Property Value
Type |
Description |
System.Single |
|
Storage
Declaration
public Inventory Storage { get; }
Property Value
Methods
Initialize()
Declaration
public override void Initialize()
Overrides
Initialize(Int32)
Declaration
public void Initialize(int numSlots)
Parameters
Type |
Name |
Description |
System.Int32 |
numSlots |
|
Initialize(Int32, Int32, InventoryRestriction[])
Declaration
public void Initialize(int numSlots, int maxWeight, params InventoryRestriction[] restrictions)
Parameters
Type |
Name |
Description |
System.Int32 |
numSlots |
|
System.Int32 |
maxWeight |
|
InventoryRestriction[] |
restrictions |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods