Class FixedStatValues
- Namespace
- ElectricDrill.AstraRpgFramework.Stats
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Serializable wrapper around a set of fixed base stat values. Usable inline in a MonoBehaviour field or embedded in a dedicated ScriptableObject.
[Serializable]
public class FixedStatValues : IFixedStatSource, IValueContainer<StatSO>
- Inheritance
-
objectFixedStatValues
- Implements
Properties
this[StatSO]
Gets or sets the fixed base value for stat.
public long this[StatSO stat] { get; set; }
Parameters
statStatSO
Property Value
- long
Methods
Contains(StatSO)
Determines whether the container includes the specified value.
public bool Contains(StatSO stat)
Parameters
statStatSO
Returns
- bool
True if the value is found in the container; otherwise, false.
GetBase(StatSO)
Gets the fixed base value for stat. Only called for stats for which
Contains(T) returns true.
public long GetBase(StatSO stat)
Parameters
statStatSO
Returns
- long