Show / Hide Table of Contents

Class InventoryComponent

Inventory components track an attribute of an inventory, such as weight restrictions may use components to handle valid item destinations

Inheritance
System.Object
InventoryComponent
WeightComponent
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public abstract class InventoryComponent : Object, IController, IViewController, IHasUniversalID

Constructors

InventoryComponent()

Declaration
protected InventoryComponent()

Properties

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Methods

ApplyChange(Item, Int32)

Declaration
public abstract void ApplyChange(Item item, int quantityDelta)
Parameters
Type Name Description
Item item
System.Int32 quantityDelta

EndChangeSetModification(Boolean)

Declaration
public abstract void EndChangeSetModification(bool successful)
Parameters
Type Name Description
System.Boolean successful

Initialize(Inventory)

Declaration
public abstract void Initialize(Inventory inventory)
Parameters
Type Name Description
Inventory inventory

Implements

IController
IViewController
IHasUniversalID

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