DIFF

class StaminaModifiersSource

Constructors 1

void StaminaModifiers()

Constants 4

const int FIXED = 0
const int RANDOMIZED = 1
const int LINEAR = 2

Useful ONLY for regular, over-time stamina drain

const int EXPONENTIAL = 3

Useful ONLY for regular, over-time stamina drain

Members 1

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_StaminaModifiers
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;

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

References map.Set(), new StaminaModifier(), LINEAR
Show 1 more, m_StaminaModifiers
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