DayZ 1.24
Loading...
Searching...
No Matches
PresenceNotifierNoiseEvents Class Reference
Collaboration diagram for PresenceNotifierNoiseEvents:
[legend]

Protected Member Functions

void PresenceNotifierNoiseEvents ()
 
void RegisterEvent (EPresenceNotifierNoiseEventType pEventType, int pValue, float pLength)
 
void ProcessEvent (EPresenceNotifierNoiseEventType pEventType)
 
int GetValue ()
 
void ResetEvent ()
 

Protected Attributes

int m_Value
 
ref Timer m_CooldownTimer
 

Static Protected Attributes

static ref map< EPresenceNotifierNoiseEventType, ref PresenceNotifierNoiseEventm_PresenceNotifierNotifierEvents
 

Detailed Description

Definition at line 29 of file PluginPresenceNotifier.c.

Constructor & Destructor Documentation

◆ PresenceNotifierNoiseEvents()

void PresenceNotifierNoiseEvents::PresenceNotifierNoiseEvents ( )
inlineprotected

Member Function Documentation

◆ GetValue()

int PresenceNotifierNoiseEvents::GetValue ( )
inlineprotected

Definition at line 62 of file PluginPresenceNotifier.c.

63 {
64 return m_Value;
65 }

References m_Value.

◆ ProcessEvent()

void PresenceNotifierNoiseEvents::ProcessEvent ( EPresenceNotifierNoiseEventType pEventType)
inlineprotected

Definition at line 49 of file PluginPresenceNotifier.c.

50 {
52
54
55 if (m_CooldownTimer.IsRunning())
56 m_CooldownTimer.Stop();
57
58 m_Value = pnne.GetValue();
59 m_CooldownTimer.Run(pnne.GetTimerLength(), this, "ResetEvent", null);
60 }
void PresenceNotifierNoiseEvent(float pValue, float pLength)

References m_CooldownTimer, m_PresenceNotifierNotifierEvents, m_Value, and PresenceNotifierNoiseEvent().

◆ RegisterEvent()

void PresenceNotifierNoiseEvents::RegisterEvent ( EPresenceNotifierNoiseEventType pEventType,
int pValue,
float pLength )
inlineprotected

◆ ResetEvent()

void PresenceNotifierNoiseEvents::ResetEvent ( )
inlineprotected

Definition at line 67 of file PluginPresenceNotifier.c.

68 {
69 m_Value = 0;
70 }

References m_Value.

Member Data Documentation

◆ m_CooldownTimer

ref Timer PresenceNotifierNoiseEvents::m_CooldownTimer
protected

Definition at line 34 of file PluginPresenceNotifier.c.

Referenced by PresenceNotifierNoiseEvents(), and ProcessEvent().

◆ m_PresenceNotifierNotifierEvents

ref map<EPresenceNotifierNoiseEventType, ref PresenceNotifierNoiseEvent> PresenceNotifierNoiseEvents::m_PresenceNotifierNotifierEvents
staticprotected

◆ m_Value

int PresenceNotifierNoiseEvents::m_Value
protected

The documentation for this class was generated from the following file: