Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
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 ActivateByType (int notifier, bool triggerEvent=true)
void DeactivateByType (int notifier, bool triggerEvent=true)
NotifierBase FindNotifier (int type)
PlayerBase GetPlayer ()
VirtualHud GetVirtualHud ()
void Init ()
void NotifiersManager (PlayerBase player)
void OnScheduledTick ()
void RegisterItself (int notifier_id, NotifierBase modifier)
void TickNotifiers ()

Variables

int m_LastPolledIndex = 0
int m_MinTickTime
ref array< intm_NotifierIDs = new array<int>()
ref array< ref NotifierBasem_Notifiers
NotifierBase m_NotifiersStatic [MAX_COUNT]
PlayerBase m_Player
string m_System = "Notifiers"
ref VirtualHud m_VirtualHud
enum eNotifiers MAX_COUNT = 64

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 2 of file notifiersmanager.c.

Function Documentation

◆ ActivateByType()

void ActivateByType ( int notifier,
bool triggerEvent = true )
private

Definition at line 95 of file notifiersmanager.c.

References FindNotifier(), and NotifierBase::SetActive().

◆ DeactivateByType()

void DeactivateByType ( int notifier,
bool triggerEvent = true )
private

Definition at line 100 of file notifiersmanager.c.

References FindNotifier(), and NotifierBase::SetActive().

◆ FindNotifier()

NotifierBase FindNotifier ( int type)
private

Definition at line 90 of file notifiersmanager.c.

References m_NotifiersStatic.

Referenced by ActivateByType(), and DeactivateByType().

◆ GetPlayer()

PlayerBase GetPlayer ( )
private

Definition at line 80 of file notifiersmanager.c.

◆ GetVirtualHud()

◆ Init()

void Init ( )
private

Definition at line 47 of file notifiersmanager.c.

References m_Notifiers.

◆ NotifiersManager()

◆ OnScheduledTick()

void OnScheduledTick ( )
private

Definition at line 105 of file notifiersmanager.c.

References GetPlayer(), and TickNotifiers().

Referenced by ManBase::OnTick().

◆ RegisterItself()

void RegisterItself ( int notifier_id,
NotifierBase modifier )
private

Definition at line 64 of file notifiersmanager.c.

References ErrorEx, m_NotifierIDs, m_NotifiersStatic, and MAX_COUNT.

◆ TickNotifiers()

Variable Documentation

◆ m_LastPolledIndex

int m_LastPolledIndex = 0
private

Definition at line 34 of file notifiersmanager.c.

Referenced by NotifiersManager(), and TickNotifiers().

◆ m_MinTickTime

int m_MinTickTime

Definition at line 32 of file notifiersmanager.c.

Referenced by NotifiersManager().

◆ m_NotifierIDs

ref array<int> m_NotifierIDs = new array<int>()
private

Definition at line 35 of file notifiersmanager.c.

Referenced by RegisterItself(), and TickNotifiers().

◆ m_Notifiers

ref array<ref NotifierBase> m_Notifiers

Definition at line 28 of file notifiersmanager.c.

Referenced by Init(), NotifiersManager(), and TickNotifiers().

◆ m_NotifiersStatic

NotifierBase m_NotifiersStatic[MAX_COUNT]

Definition at line 29 of file notifiersmanager.c.

Referenced by FindNotifier(), RegisterItself(), and TickNotifiers().

◆ m_Player

Definition at line 30 of file notifiersmanager.c.

◆ m_System

string m_System = "Notifiers"

Definition at line 33 of file notifiersmanager.c.

◆ m_VirtualHud

ref VirtualHud m_VirtualHud

Definition at line 31 of file notifiersmanager.c.

Referenced by GetVirtualHud().

◆ MAX_COUNT

enum eNotifiers MAX_COUNT = 64

Referenced by RegisterItself().