UnityToolbox
Brief documentation for all existing scripts.
 
Loading...
Searching...
No Matches
BoundInventory Class Reference
Inheritance diagram for BoundInventory:
InventoryBase

Public Member Functions

override bool AddItem (ItemInstance item, int count)
 
override void RemoveItem (ItemInstance item, int count)
 
override void UpdateItem (ItemInstance old, ItemInstance updated)
 
override void RemoveItem (ItemInstance item)
 
abstract bool AddItem (ItemInstance item, int count)
 
abstract void RemoveItem (ItemInstance item, int count)
 
abstract void RemoveItem (ItemInstance item)
 
abstract void UpdateItem (ItemInstance old, ItemInstance updated)
 

Public Attributes

Action OnInventoryChanged
 
int MaxSlotCount
 

Properties

Dictionary< ItemInstance, int > Items [get, set]
 
- Properties inherited from InventoryBase
string ID [get]
 

Member Function Documentation

◆ AddItem()

override bool BoundInventory.AddItem ( ItemInstance  item,
int  count 
)
virtual

◆ RemoveItem() [1/2]

override void BoundInventory.RemoveItem ( ItemInstance  item)
virtual

Implements InventoryBase.

References OnInventoryChanged.

◆ RemoveItem() [2/2]

override void BoundInventory.RemoveItem ( ItemInstance  item,
int  count 
)
virtual

◆ UpdateItem()

override void BoundInventory.UpdateItem ( ItemInstance  old,
ItemInstance  updated 
)
virtual

Implements InventoryBase.

References AddItem(), OnInventoryChanged, and RemoveItem().

Member Data Documentation

◆ MaxSlotCount

int BoundInventory.MaxSlotCount

Referenced by AddItem().

◆ OnInventoryChanged

Action BoundInventory.OnInventoryChanged

Property Documentation

◆ Items

Dictionary<ItemInstance, int> BoundInventory.Items
getset