Loading...
Searching...
No Matches
AdventureCore.TiledInventoryItem Class Reference
Inheritance diagram for AdventureCore.TiledInventoryItem:
AdventureCore.InventoryItem

Classes

struct  TiledInventoryItemData
 

Public Member Functions

 TiledInventoryItem (ItemQuantity itemQuantity)
 
 TiledInventoryItem (ItemBase item)
 
 TiledInventoryItem (ItemBase item, int quantity)
 
 TiledInventoryItem (ItemBase item, int quantity, ItemValue[] values)
 
 TiledInventoryItem (ItemQuantity itemQuantity, Vector2Int size, Vector2Int position, bool rotated)
 
 TiledInventoryItem (ItemBase item, int quantity, Vector2Int size, Vector2Int position, bool rotated)
 
 TiledInventoryItem (ItemBase item, int quantity, ItemValue[] values, Vector2Int size, Vector2Int position, bool rotated)
 
bool Occupies (Vector2Int position)
 
new TiledInventoryItemData GetData ()
 
override string ToString ()
 
- Public Member Functions inherited from AdventureCore.InventoryItem
 InventoryItem (ItemQuantity itemQuantity)
 
 InventoryItem (ItemBase item)
 
 InventoryItem (ItemBase item, int quantity)
 
 InventoryItem (ItemBase item, int quantity, ItemValue[] values)
 
string GetStringValue (string key, string defaultValue)
 
int GetIntValue (string key, int defaultValue)
 
float GetFloatValue (string key, float defaultValue)
 
bool GetBoolValue (string key, bool defaultValue)
 
virtual bool CheckValue (string key)
 
virtual T GetValue< T > (string key, T defaultValue)
 
ItemQuantity GetItemQuantity ()
 
InventoryItemData GetData ()
 
virtual void OnQuantityChanged ()
 
override string ToString ()
 

Public Attributes

Vector2Int Position
 
bool Rotated
 
- Public Attributes inherited from AdventureCore.InventoryItem
ItemBase Item
 
int Quantity
 
ItemSlotBase EquippedSlot
 
ItemValue[] Values
 

Properties

Vector2Int Size = Vector2Int.one [get, set]
 
Vector2Int RotatedSize [get]
 

Events

Action Moved
 
- Events inherited from AdventureCore.InventoryItem
Action< ItemSlotBaseEquippedSlotChanged
 
Action< int > QuantityChanged
 
Action< string > ValueChanged