Show / Hide Table of Contents

Class StorageComponent

Inheritance
System.Object
WorldObjectComponent
StorageComponent
FuelSupplyComponent
InteractableStorage
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IInventoryWorldObjectComponent
IPermanentDestroyHandler
ICanOverrideAuth
IHasEnvVars
Inherited Members
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.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components.Storage
Assembly: Eco.Gameplay.dll
Syntax
public abstract class StorageComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, ICanOverrideAuth, IHasEnvVars

Constructors

StorageComponent()

Declaration
protected StorageComponent()

Properties

HiddenFromUI

Declaration
public bool HiddenFromUI { get; set; }
Property Value
Type Description
System.Boolean

IconName

Declaration
public override string IconName { get; }
Property Value
Type Description
System.String
Overrides
WorldObjectComponent.IconName

Inventories

Declaration
public IEnumerable<Inventory> Inventories { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Inventory>

Inventory

Declaration
public abstract Inventory Inventory { get; }
Property Value
Type Description
Inventory

Methods

ConsolidateInventory(User)

Consolidate this storage inventory (includes A-Z sorting by name).

Declaration
public void ConsolidateInventory(User user)
Parameters
Type Name Description
User user

Destroy()

Declaration
public override void Destroy()
Overrides
WorldObjectComponent.Destroy()

FindItemCantContain(IEnumerable<ItemStack>)

Declaration
public Item FindItemCantContain(IEnumerable<ItemStack> stacks)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ItemStack> stacks
Returns
Type Description
Item

Initialize()

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

PostInitialize()

Declaration
public override void PostInitialize()
Overrides
WorldObjectComponent.PostInitialize()

ShouldOverrideAuth(IAlias, IOwned, GameAction)

Declaration
public LazyResult ShouldOverrideAuth(IAlias alias, IOwned property, GameAction action)
Parameters
Type Name Description
IAlias alias
IOwned property
GameAction action
Returns
Type Description
LazyResult

TryPickup(Player, InventoryChangeSet, Inventory, Boolean)

Declaration
public override InventoryMoveResult TryPickup(Player player, InventoryChangeSet playerInvChanges, Inventory targetInventory, bool force)
Parameters
Type Name Description
Player player
InventoryChangeSet playerInvChanges
Inventory targetInventory
System.Boolean force
Returns
Type Description
InventoryMoveResult
Overrides
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)

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
☀
☾