Class StorageComponent
Inheritance
System.Object
StorageComponent
Implements
System.ComponentModel.INotifyPropertyChanged
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
public 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
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
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
FindItemCantContain(IEnumerable<ItemStack>)
Declaration
public Item FindItemCantContain(IEnumerable<ItemStack> stacks)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<ItemStack> |
stacks |
|
Returns
Initialize()
Declaration
public override void Initialize()
Overrides
PostInitialize()
Declaration
public override void PostInitialize()
Overrides
ShouldOverrideAuth(IAlias, IOwned, GameAction)
Declaration
public LazyResult ShouldOverrideAuth(IAlias alias, IOwned property, GameAction action)
Parameters
Returns
TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
Declaration
public override InventoryMoveResult TryPickup(Player player, InventoryChangeSet playerInvChanges, Inventory targetInventory, bool force)
Parameters
Returns
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods