|
3D Dungeon Crawler
|
This is a scriptable object, what defines what an item is in our game it could be inherited to have brachned ersions of items. More...
Public Types | |
| enum | Rarity { Common , Uncommon , Rare , Epic , Legendary } |
Public Member Functions | |
| virtual void | UseItem () |
Public Attributes | |
| Sprite | Icon |
| int | MaxStackSize |
| int | ID = -1 |
| string | DisplayName |
| string | Description |
| Rarity | rarity = Rarity.Common |
| GameObject | ItemPrefab |
| InventoryItemType | ItemType |
| int | dropChance |
| bool | consumable = false |
| bool | isAbility = false |
| float | goldValue = 1 |
This is a scriptable object, what defines what an item is in our game it could be inherited to have brachned ersions of items.
|
virtual |
Reimplemented in ConsumableItemData, and WeaponItemData.
| bool InventoryItemData.consumable = false |
| string InventoryItemData.Description |
| string InventoryItemData.DisplayName |
| int InventoryItemData.dropChance |
| float InventoryItemData.goldValue = 1 |
| Sprite InventoryItemData.Icon |
| int InventoryItemData.ID = -1 |
| bool InventoryItemData.isAbility = false |
| GameObject InventoryItemData.ItemPrefab |
| InventoryItemType InventoryItemData.ItemType |
| int InventoryItemData.MaxStackSize |
| Rarity InventoryItemData.rarity = Rarity.Common |