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

Detailed Description

item that can add attributes, stats and effects when used

https://adventure.softleitner.com/manual/item

Inheritance diagram for AdventureCore.UsableItem:
AdventureCore.PrefabItem AdventureCore.ItemBase

Public Member Functions

override bool CanAdd (InventoryBase inventory, int quantity=1)
 
override bool OnAdd (InventoryBase inventory, int quantity, out InventoryItem inventoryItem)
 
override bool OnUse (CharacterBase character, int quantity=1)
 
- Public Member Functions inherited from AdventureCore.ItemBase
virtual bool CanUse (CharacterBase character, int quantity=1)
 
virtual bool CanEquip (CharacterBase character)
 
virtual void OnEquip (CharacterBase character)
 
virtual void OnUnequip (CharacterBase character)
 
void Add (CharacterBase character)
 
void Remove (CharacterBase character)
 
void Add (CharacterActionBase action)
 
void Remove (CharacterActionBase action)
 
override string ToString ()
 

Public Attributes

AttributeValue[] Attributes
 
ResourceQuantity[] Resources
 
EffectType[] Effects
 
bool InstantUse
 
- Public Attributes inherited from AdventureCore.PrefabItem
Transform Prefab
 
- Public Attributes inherited from AdventureCore.ItemBase
string Key
 
string Name
 
string Description
 
Sprite Image
 
GameObject Visual
 
ItemCategory Category
 
ItemSlotCategory Slot
 

Properties

override bool IsStackable [get]
 
override bool IsEquippable [get]
 
override bool IsUsable [get]
 
- Properties inherited from AdventureCore.PrefabItem
override bool IsEquippable [get]
 
- Properties inherited from AdventureCore.ItemBase
virtual bool IsStackable [get]
 
virtual bool IsEquippable [get]
 
virtual bool IsUsable [get]
 

Member Function Documentation

◆ CanAdd()

override bool AdventureCore.UsableItem.CanAdd ( InventoryBase inventory,
int quantity = 1 )
inlinevirtual

Reimplemented from AdventureCore.ItemBase.

◆ OnAdd()

override bool AdventureCore.UsableItem.OnAdd ( InventoryBase inventory,
int quantity,
out InventoryItem inventoryItem )
inlinevirtual

Reimplemented from AdventureCore.ItemBase.

◆ OnUse()

override bool AdventureCore.UsableItem.OnUse ( CharacterBase character,
int quantity = 1 )
inlinevirtual

Reimplemented from AdventureCore.ItemBase.