Show / Hide Table of Contents

Class PublicStorageComponent

Inheritance
System.Object
WorldObjectComponent
StorageComponent
InteractableStorage
PublicStorageComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IInventoryWorldObjectComponent
IPermanentDestroyHandler
ICanOverrideAuth
IHasEnvVars
Inherited Members
InteractableStorage.TakeItem(Player, InteractionTriggerInfo, InteractionTarget)
InteractableStorage.PutItem(Player, InteractionTriggerInfo, InteractionTarget)
InteractableStorage.HoldingTool(User)
InteractableStorage.CanTake(User)
InteractableStorage.CanPut(User)
InteractableStorage.Take(User, InteractionTarget, Boolean)
InteractableStorage.GetItemsUserCanTake(WorldObject, User, Item, Item, Boolean, Func<ItemStack, Item, Boolean>)
InteractableStorage.CanTakeAll
StorageComponent.PostInitialize()
StorageComponent.Destroy()
StorageComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
StorageComponent.FindItemCantContain(IEnumerable<ItemStack>)
StorageComponent.ShouldOverrideAuth(IAlias, IOwned, GameAction)
StorageComponent.ConsolidateInventory(User)
StorageComponent.IconName
StorageComponent.HiddenFromUI
StorageComponent.Inventories
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.OnCreate()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components.Storage
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
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

Inventory

Declaration
public override Inventory Inventory { get; }
Property Value
Type Description
Inventory
Overrides
StorageComponent.Inventory

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
Type Description
Inventory

Methods

Initialize()

Declaration
public override void Initialize()
Overrides
InteractableStorage.Initialize()

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

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
IInventoryWorldObjectComponent
IPermanentDestroyHandler
ICanOverrideAuth
IHasEnvVars

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾