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

Detailed Description

special resource value that acts as a placeholder for another, interchangeable, resource value

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

Inheritance diagram for AdventureCore.ResourcePoolSurrogateValue:
AdventureCore.ResourceValue

Public Member Functions

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

Protected Member Functions

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

Properties

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

Additional Inherited Members

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

Member Function Documentation

◆ Awake()

override void AdventureCore.ResourcePoolSurrogateValue.Awake ( )
inlineprotectedvirtual

Reimplemented from AdventureCore.ResourceValue.

◆ ResetValue()

override bool AdventureCore.ResourcePoolSurrogateValue.ResetValue ( )
virtual

Reimplemented from AdventureCore.ResourceValue.

◆ Update()

override void AdventureCore.ResourcePoolSurrogateValue.Update ( )
inlineprotectedvirtual

Reimplemented from AdventureCore.ResourceValue.