Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
notifiersmanager.c File Reference

Go to the source code of this file.

Enumerations

enum  eNotifiers {
  NTF_HEALTHY, NTF_BLEEDISH, NTF_HUNGRY, NTF_THIRSTY,
  NTF_STUFFED, NTF_SICK, NTF_WETNESS, NTF_WARMTH,
  NTF_FEVERISH, NTF_BLOOD, NTF_LIVES, NTF_STAMINA,
  NTF_PILLS, NTF_HEARTBEAT, NTF_FRACTURE, NTF_LEGS,
  NTF_COUNT
}
 

Functions

void NotifiersManager (PlayerBase player)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) More...
 
void RegisterItself (int notifier_id, NotifierBase modifier)
 
PlayerBase GetPlayer ()
 
VirtualHud GetVirtualHud ()
 
NotifierBase FindNotifier (int type)
 
void ActivateByType (int notifier, bool triggerEvent=true)
 
void DeactivateByType (int notifier, bool triggerEvent=true)
 
void OnScheduledTick ()
 
void TickNotifiers ()
 

Variables

enum eNotifiers MAX_COUNT = 64
 
ref array< ref NotifierBasem_Notifiers
 
ref NotifierBase m_NotifiersStatic [MAX_COUNT]
 
PlayerBase m_Player
 
ref VirtualHud m_VirtualHud
 
int m_MinTickTime
 
string m_System = "Notifiers"
 

Enumeration Type Documentation

◆ eNotifiers

enum eNotifiers
Enumerator
NTF_HEALTHY 
NTF_BLEEDISH 
NTF_HUNGRY 
NTF_THIRSTY 
NTF_STUFFED 
NTF_SICK 
NTF_WETNESS 
NTF_WARMTH 
NTF_FEVERISH 
NTF_BLOOD 
NTF_LIVES 
NTF_STAMINA 
NTF_PILLS 
NTF_HEARTBEAT 
NTF_FRACTURE 
NTF_LEGS 
NTF_COUNT 

Definition at line 1 of file notifiersmanager.c.

Function Documentation

◆ ActivateByType()

void ActivateByType ( int  notifier,
bool  triggerEvent = true 
)

Definition at line 87 of file notifiersmanager.c.

◆ DeactivateByType()

void DeactivateByType ( int  notifier,
bool  triggerEvent = true 
)

Definition at line 92 of file notifiersmanager.c.

◆ FindNotifier()

NotifierBase FindNotifier ( int  type)

Definition at line 82 of file notifiersmanager.c.

◆ GetPlayer()

PlayerBase GetPlayer ( )

Definition at line 72 of file notifiersmanager.c.

◆ GetVirtualHud()

VirtualHud GetVirtualHud ( )

Definition at line 77 of file notifiersmanager.c.

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

Definition at line 46 of file notifiersmanager.c.

◆ NotifiersManager()

void NotifiersManager ( PlayerBase  player)

Definition at line 36 of file notifiersmanager.c.

◆ OnScheduledTick()

void OnScheduledTick ( )

Definition at line 97 of file notifiersmanager.c.

◆ RegisterItself()

void RegisterItself ( int  notifier_id,
NotifierBase  modifier 
)

Definition at line 64 of file notifiersmanager.c.

◆ TickNotifiers()

void TickNotifiers ( )

Definition at line 104 of file notifiersmanager.c.

Variable Documentation

◆ m_MinTickTime

int m_MinTickTime

Definition at line 33 of file notifiersmanager.c.

◆ m_Notifiers

ref array<ref NotifierBase> m_Notifiers

Definition at line 29 of file notifiersmanager.c.

◆ m_NotifiersStatic

ref NotifierBase m_NotifiersStatic[MAX_COUNT]

Definition at line 30 of file notifiersmanager.c.

◆ m_Player

PlayerBase m_Player

Definition at line 31 of file notifiersmanager.c.

◆ m_System

string m_System = "Notifiers"

Definition at line 34 of file notifiersmanager.c.

◆ m_VirtualHud

ref VirtualHud m_VirtualHud

Definition at line 32 of file notifiersmanager.c.

◆ MAX_COUNT

enum eNotifiers MAX_COUNT = 64