Class UsableItem
Describe an usable item. A usable item is an item that can be used in the inventory by double clicking on it.
When it is used, all the stored UsageEffects will be run, allowing to specify what that item does.
(e.g. a AddHealth effect will give health point back to the user)
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UsableItem
Assembly: Assembly-CSharp.dll
Syntax
[CreateAssetMenu(fileName = "UsableItem", menuName = "Beginner Code/Usable Item", order = -999)]
public class UsableItem : Item
Fields
UsageEffects
Declaration
public List<UsableItem.UsageEffect> UsageEffects
Field Value
Methods
GetDescription()
Declaration
public override string GetDescription()
Returns
Type |
Description |
System.String |
|
Overrides
UsedBy(CharacterData)
Declaration
public override bool UsedBy(CharacterData user)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides