![]() |
FrameworkZ 4.4.2
Provides a framework for Project Zomboid with various systems.
|
The Inventories module for FrameworkZ. Defines and interacts with INVENTORY object. More...
Public Member Functions | |
| void | GetInventoryByID (id) |
| void | GetItemByID (inventoryID, uniqueID) |
| void | GetItemCountByID (inventoryID, uniqueID) |
| integer | Initialize (id, object) |
| Initialize an inventory. | |
| table | New (username, type, id) |
| Create a new inventory object. | |
| table | Rebuild (isoPlayer, inventory, items) |
| Recursively traverses the inventory table for missing data while referencing the item definitions to rebuild the inventory. | |
Data Fields | |
| FrameworkZ Inventories | __index |
| Character | |
| Container | |
| FrameworkZ | Inventories |
| FrameworkZ Inventories | List |
| FrameworkZ Inventories | Types |
| Vehicle | |
The Inventories module for FrameworkZ. Defines and interacts with INVENTORY object.
Definition at line 50 of file Inventories.lua.
| void GetInventoryByID | ( | id | ) |
| void GetItemByID | ( | inventoryID | , |
| uniqueID | ) |
| void GetItemCountByID | ( | inventoryID | , |
| uniqueID | ) |
Create a new inventory object.
| username | string The owner's username. Can be nil for no owner. |
| type | string The type of inventory. Can be nil, but creates a character inventory type by default. Refer to FrameworkZ.Inventories.Types table for available types. |
| id | string The inventory's ID. Can be nil for an auto generated ID (recommended). |
| FrameworkZ Inventories __index |
Definition at line 52 of file Inventories.lua.
| FrameworkZ::Inventories::Character |
Definition at line 58 of file Inventories.lua.
| FrameworkZ::Inventories::Container |
Definition at line 60 of file Inventories.lua.
Definition at line 64 of file Inventories.lua.
| FrameworkZ Inventories List |
Definition at line 54 of file Inventories.lua.
| FrameworkZ Inventories Types |
Definition at line 56 of file Inventories.lua.
| FrameworkZ::Inventories::Vehicle |
Definition at line 62 of file Inventories.lua.