3D Dungeon Crawler
Loading...
Searching...
No Matches
InventoryItemData Class Reference

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...

Inheritance diagram for InventoryItemData:
ArmorItemData ConsumableItemData SpellScriptableObject WeaponItemData SupportSpell MagicWeaponItemData

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
 

Detailed Description

This is a scriptable object, what defines what an item is in our game it could be inherited to have brachned ersions of items.

Member Enumeration Documentation

◆ Rarity

Enumerator
Common 
Uncommon 
Rare 
Epic 
Legendary 

Member Function Documentation

◆ UseItem()

virtual void InventoryItemData.UseItem ( )
virtual

Reimplemented in ConsumableItemData, and WeaponItemData.

Member Data Documentation

◆ consumable

bool InventoryItemData.consumable = false

◆ Description

string InventoryItemData.Description

◆ DisplayName

string InventoryItemData.DisplayName

◆ dropChance

int InventoryItemData.dropChance

◆ goldValue

float InventoryItemData.goldValue = 1

◆ Icon

Sprite InventoryItemData.Icon

◆ ID

int InventoryItemData.ID = -1

◆ isAbility

bool InventoryItemData.isAbility = false

◆ ItemPrefab

GameObject InventoryItemData.ItemPrefab

◆ ItemType

InventoryItemType InventoryItemData.ItemType

◆ MaxStackSize

int InventoryItemData.MaxStackSize

◆ rarity

Rarity InventoryItemData.rarity = Rarity.Common

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