class StaminaModifiersSource
Constructors 1
void StaminaModifiers()References m_StaminaModifiers
Referenced by StaminaHandler.RegisterStaminaModifiers()
Constants 4
const int FIXED = 0const int RANDOMIZED = 1const int LINEAR = 2Useful ONLY for regular, over-time stamina drain
const int EXPONENTIAL = 3Useful ONLY for regular, over-time stamina drain
Members 1
protected ref map<EStaminaModifiers, ref StaminaModifier> m_StaminaModifiersReferenced by GetModifierData(), RegisterExponential(), RegisterExponentialEx()
Show 4 more
, RegisterFixed(), RegisterLinear(), RegisterRandomized(), and StaminaModifiers()Methods 6
void RegisterFixed(EStaminaModifiers modifier, float value, float cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION)register single value modifier - depletes stamina for that value
References map.Contains(), map.Set(), new StaminaModifier()
Show 2 more
, FIXED, and m_StaminaModifiersReferenced by StaminaHandler.RegisterStaminaModifiers()
void RegisterRandomized(EStaminaModifiers modifier, float minValue, float maxValue, float cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION)register randomized modifier - stamina will be depleted by value between min and max value;
References map.Contains(), map.Set(), new StaminaModifier()
Show 2 more
, m_StaminaModifiers, and RANDOMIZEDReferenced by StaminaHandler.RegisterStaminaModifiers()
void RegisterLinear(EStaminaModifiers modifier, float startValue, float endValue, float startTime, float duration, float cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION)register lerped modifier - depletes stamina for startValue, and, after a startTime, lerps to endValue over duration
void RegisterExponential(EStaminaModifiers modifier, float startValue, float exponent, float startTime, float duration, float cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION)register exponential modifier - depletes stamina for startValue, and, after a startTime, lerps from 0 to exponent over duration
void RegisterExponentialEx(EStaminaModifiers modifier, SMDataExponential data)register exponential modifier, extended parameters
Referenced by StaminaHandler.RegisterStaminaModifiers()
StaminaModifier GetModifierData(EStaminaModifiers modifier)