Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
InventoryManager Class Reference
Inheritance diagram for InventoryManager:
Machine

Public Member Functions

void Start ()
 
override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 
void SaveData ()
 Saves the inventory's contents to disk. More...
 
void AddItem (string type, int amount)
 Adds an item to the inventory. More...
 
void AddItemToSlot (string type, int amount, int slot)
 

Public Attributes

InventorySlot [] inventory
 
string ID = "unassigned"
 
int address
 
bool initialized
 
int maxStackSize = 1000
 
bool itemAdded
 

Private Member Functions

bool IsStorageContainer ()
 Returns true if this object is a storage container. More...
 

Private Attributes

StateManager stateManager
 
string originalID
 

Member Function Documentation

◆ AddItem()

void InventoryManager.AddItem ( string  type,
int  amount 
)
inline

Adds an item to the inventory.

◆ AddItemToSlot()

void InventoryManager.AddItemToSlot ( string  type,
int  amount,
int  slot 
)
inline

◆ IsStorageContainer()

bool InventoryManager.IsStorageContainer ( )
inlineprivate

Returns true if this object is a storage container.

◆ SaveData()

void InventoryManager.SaveData ( )
inline

Saves the inventory's contents to disk.

◆ Start()

void InventoryManager.Start ( )
inline

◆ UpdateMachine()

override void InventoryManager.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

Member Data Documentation

◆ address

int InventoryManager.address

◆ ID

string InventoryManager.ID = "unassigned"

◆ initialized

bool InventoryManager.initialized

◆ inventory

InventorySlot [] InventoryManager.inventory

◆ itemAdded

bool InventoryManager.itemAdded

◆ maxStackSize

int InventoryManager.maxStackSize = 1000

◆ originalID

string InventoryManager.originalID
private

◆ stateManager

StateManager InventoryManager.stateManager
private

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