![]() |
FrameworkZ 10.8.3
Provides a framework for Project Zomboid with various systems.
|
Inventory class for FrameworkZ. More...
Public Member Functions | |
| void | AddItem (item) |
| Add an item to the inventory. | |
| void | AddItems (uniqueID, quantity) |
| Add multiple items to the inventory. | |
| void | GetItemByUniqueID (uniqueID) |
| void | GetItemCountByID (uniqueID) |
| void | GetItems () |
| string | GetName () |
| Get the inventory's name. | |
| void | GetSaveableData () |
| string | Initialize () |
| Initialize an inventory. | |
| void | RemoveItem (item) |
Data Fields | |
| INVENTORY | __index |
Inventory class for FrameworkZ.
Definition at line 59 of file Inventories.lua.
Add an item to the inventory.
Note: This does not add a world item, it simply adds it to the inventory's object. Please use CHARACTER::GiveItem(uniqueID) to add an item to a character's inventory along with the world item.
| item | string The item's ID. |
Add multiple items to the inventory.
Note: This does not add a world item, it simply adds it to the inventory's object. Please use CHARACTER::GiveItems(uniqueID) to add an items to a character's inventory along with the world item.
| void GetItems | ( | ) |
| string GetName | ( | ) |
Get the inventory's name.
| void GetSaveableData | ( | ) |
| string Initialize | ( | ) |
Initialize an inventory.
| INVENTORY __index |
Definition at line 61 of file Inventories.lua.