![]() |
FrameworkZ 4.4.2
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 | GetItemByID (uniqueID) |
void | GetItemCountByID (uniqueID) |
void | GetItems () |
string | GetName () |
Get the inventory's name. | |
string | Initialize () |
Initialize an inventory. | |
Data Fields | |
INVENTORY | __index |
Inventory class for FrameworkZ.
Definition at line 15 of file Inventories.lua.
void AddItem | ( | item | ) |
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. |
void AddItems | ( | uniqueID | , |
quantity | ) |
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 GetItemByID | ( | uniqueID | ) |
void GetItemCountByID | ( | uniqueID | ) |
void GetItems | ( | ) |
string GetName | ( | ) |
Get the inventory's name.
string Initialize | ( | ) |
Initialize an inventory.
INVENTORY __index |
Definition at line 17 of file Inventories.lua.