FrameworkZ 10.8.3
Provides a framework for Project Zomboid with various systems.
Loading...
Searching...
No Matches
INVENTORY Class Reference

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
 

Detailed Description

Inventory class for FrameworkZ.

Definition at line 59 of file Inventories.lua.

Member Function Documentation

◆ AddItem()

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.

Parameters
itemstring The item's ID.
See also
CHARACTER::GiveItem(uniqueID)

◆ AddItems()

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.

Parameters
uniqueIDstring The item's ID.
quantityinteger The quantity of the item to add.
See also
CHARACTER::GiveItems(uniqueID)

◆ GetItemByUniqueID()

void GetItemByUniqueID ( uniqueID )

◆ GetItemCountByID()

void GetItemCountByID ( uniqueID )

◆ GetItems()

void GetItems ( )

◆ GetName()

string GetName ( )

Get the inventory's name.

Returns
string The inventory's name.

◆ GetSaveableData()

void GetSaveableData ( )

◆ Initialize()

string Initialize ( )

Initialize an inventory.

Returns
string The inventory's ID.

◆ RemoveItem()

void RemoveItem ( item )

Field Documentation

◆ __index

INVENTORY __index

Definition at line 61 of file Inventories.lua.


The documentation for this class was generated from the following file: