Methods
Inventory:addItem(item: any, ignore_convert: any)
Arguments:
item: any | |
ignore_convert: any |
Returns:
1: Item|nil |
Inventory:addItemTo(storage: any, index: any, item: any, allow_fallback: any)
Arguments:
storage: any | |
index: any | |
item: any | |
allow_fallback: any |
Returns:
1: Item|nil |
Inventory:getDefaultStorage(item_type: any, ignore_convert: any)
Arguments:
item_type: any | |
ignore_convert: any |
Returns:
1: unknown|nil |
Inventory:getFreeSpace(storage: any, allow_fallback: any)
Arguments:
storage: any | |
allow_fallback: any |
Returns:
1: integer|unknown |
Inventory:getItemCount(storage: any, allow_fallback: any)
Arguments:
storage: any | |
allow_fallback: any |
Returns:
1: integer|unknown |
Inventory:getNextIndex(storage: any, index: any, allow_fallback: any)
Arguments:
storage: any | |
index: any | |
allow_fallback: any |
Returns:
1: unknown|nil | |
2: unknown|nil |
Inventory:isFull(storage: any, allow_fallback: any)
Arguments:
storage: any | |
allow_fallback: any |
Returns:
1: boolean|nil |
Inventory:removeItemFrom(storage: any, index: any)
Arguments:
storage: any | |
index: any |
Returns:
1: unknown|nil |
Inventory:setItem(storage: any, index: any, item: any)
Arguments:
storage: any | |
index: any | |
item: any |
Returns:
1: Item|nil |
Inventory:swapItems(storage1: any, index1: any, storage2: any, index2: any)
Arguments:
storage1: any | |
index1: any | |
storage2: any | |
index2: any |
Inventory:tryGiveItem(item: any, ignore_convert: any)
Arguments:
item: any | |
ignore_convert: any |
Returns:
1: boolean | |
2: unknown |