ItemData

ItemData

class

Item prototype paired with a count

Fields

NameTypeDescription
count integer Item count
item StaticItem Item prototype

Functions

ItemData.new_empty()

Create an item stack holding nothing

returns ItemData

ItemData.new(item, count)

Create an item stack

item StaticItem Item prototype
count integer Item count

returns ItemData

ItemData.new_zero(item)

Create an item stack with a zero count

item StaticItem Item prototype

returns ItemData

Used by