InventoryAccess

InventoryAccess

class

Inventory interface with add and remove operations

Fields

NameTypeDescription
zero_slots boolean
draggable boolean Whether inventory can be dragged in UI (default: true)

Functions

InventoryAccess:add(item, count)

Add item with count to InventoryAccess

item StaticItem
count integer

returns integer Remainder

InventoryAccess:sub(item, count)

Remove item with count from InventoryAccess

item StaticItem
count integer

returns integer Remainder

Standard members (2)

Generated for every class of this kind by the game's codegen, not written for InventoryAccess.

InventoryAccess.cast(object) Trying to cast Object into InventoryAccess
InventoryAccess.get_class() Return InventoryAccess class object
Inherited from InventoryReader (3)
Inherited from Instance (1)
Inherited from Object (3)

Subclasses

Used by