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

Detailed Description

resource value that changes its value over time

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

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

Public Member Functions

override bool Change (float value, Object source=null)
 
- Public Member Functions inherited from AdventureCore.ResourceValue
virtual bool Set (float value, Object source=null)
 
virtual bool ResetValue ()
 
virtual void SetMaximum (float value, Object source=null)
 
override string ToString ()
 

Public Attributes

float Rate
 
float Lag
 
- Public Attributes inherited from AdventureCore.ResourceValue
ResourceType Type
 
float Maximum
 
float Value
 
UnityEvent< float > Changed
 
UnityEvent< float > MaximumChanged
 

Protected Member Functions

override void Update ()
 
- Protected Member Functions inherited from AdventureCore.ResourceValue
virtual void Awake ()
 
virtual float applyCaps (float value)
 
virtual void onValueChanged ()
 
virtual void onMaximumChanged ()
 

Additional Inherited Members

- Properties inherited from AdventureCore.ResourceValue
float Ratio [get]
 
ResourcePool Pool [get, set]
 

Member Function Documentation

◆ Change()

override bool AdventureCore.ChangingResourceValue.Change ( float value,
Object source = null )
inlinevirtual

Reimplemented from AdventureCore.ResourceValue.

◆ Update()

override void AdventureCore.ChangingResourceValue.Update ( )
inlineprotectedvirtual

Reimplemented from AdventureCore.ResourceValue.