DIFF

class NotifierBaseSource

Constructors 1

Constants 1

const int TENDENCY_BUFFER_SIZE = 30

this needs to be bigger or same size as buffer size of any invidual buffer size

Members 16

float m_DeltaT

time in seconds since the last tick

ref Timer m_Timer1

timer which can be used for whatever

int m_Type
Referenced by GetNotifierType()
Referenced by NotifierBase()
int m_TendencyBufferSize = 3

for best results, this should be somewhat aligned with modifier frequency

bool m_ShowTendency
Referenced by AddToCyclicBuffer(), and OnTick()
int m_TickInterval
int m_TickIntervalLastTick
Referenced by IsTimeToTick(), and OnTick()
float m_TendencyBuffer[TENDENCY_BUFFER_SIZE]
int m_TendencyBufferWriteIterator
float m_LastTendency
float m_LastMA
Referenced by GetDeltaAvaraged()
bool m_FirstPass = true
Referenced by GetDeltaAvaraged()
PluginPlayerStatus m_ModulePlayerStatus
Referenced by NotifierBase()

Methods 18

bool IsTimeToTick(int current_time)
int GetNotifierType()
References m_Type
Referenced by NotifierBase()
string GetName()
bool IsActive()
References m_Active
void SetActive(bool state)
References HideBadge(), and m_Active
void DisplayTendency(float delta)
Referenced by OnTick()
void AddToCyclicBuffer(float value)
Referenced by OnTick()
float ReadFromCyclicBuffer(int index)
Referenced by GetDeltaAvaraged()
float GetDeltaAvaraged()
Referenced by OnTick()
void SmoothOutFloatValues(array<float> values)
void OnTick(float current_Time)
protected int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
protected eBadgeLevel DetermineBadgeLevel(float value, float lvl_1, float lvl_2, float lvl_3)
protected void DisplayBadge()
Referenced by OnTick()
protected void HideBadge()
Referenced by SetActive()
protected float GetObservedValue()
Referenced by OnTick()