Loading...
Searching...
No Matches
AdventureCore.InventoryItem Class Reference

Detailed Description

serializable utility class used in inventories to keep track of item quantity and the slot it is equipped to
manages some of the plumbing between item and slot
should only be created by an inventory, if you need to show items quantities in the inspector use ItemQuantity

Classes

struct  InventoryItemData
 

Public Member Functions

 InventoryItem (ItemQuantity itemQuantity)
 
 InventoryItem (ItemBase item)
 
 InventoryItem (ItemBase item, int quantity)
 
ItemQuantity GetItemQuantity ()
 
InventoryItemData GetData ()
 
virtual void OnQuantityChanged ()
 
override string ToString ()
 

Public Attributes

ItemBase Item
 
int Quantity
 
ItemSlotBase EquippedSlot
 

Events

Action< ItemSlotBaseEquippedSlotChanged
 
Action< int > QuantityChanged