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

Detailed Description

basic resource value that does not change on its own
inherit from this class to implement resources with custom logic

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

Inheritance diagram for AdventureCore.ResourceValue:
AdventureCore.ChangingResourceValue AdventureSouls.SoulsStamina AdventureCore.EffectResourceValue

Public Member Functions

virtual bool Change (float value, Object source=null)
 
virtual bool Set (float value, Object source=null)
 
virtual bool ResetValue ()
 
virtual void SetMaximum (float value, Object source=null)
 
override string ToString ()
 

Public Attributes

ResourceType Type
 
float Maximum
 
float Value
 
UnityEvent< float > Changed
 
UnityEvent< float > MaximumChanged
 

Protected Member Functions

virtual void Awake ()
 
virtual void Update ()
 
virtual float applyCaps (float value)
 
virtual void onValueChanged ()
 
virtual void onMaximumChanged ()
 

Properties

float Ratio [get]
 
ResourcePool Pool [get, set]