ResourceInventory

ResourceInventory

class

Single slot inventory holding one resource item

Fields

NameTypeDescription
item StaticItem
drain integer
capacity integer

Functions

ResourceInventory:add_resource(amount)

Put resource into the slot ignoring transfer rules

amount integer
Standard members (4)

Every class of this kind carries these.

ResourceInventory.cast(object) Trying to cast Object into ResourceInventory
ResourceInventory.get_class() Return ResourceInventory class object
ResourceInventory.new(parent, name) Creates a new ResourceInventory instance
ResourceInventory.new_simple() Creates a new ResourceInventory instance
Inherited from SingleSlotInventory (1)
Inherited from InventoryAccess (4)
Inherited from InventoryReader (3)
Inherited from Instance (1)
Inherited from Object (3)

Used by