DayZ 1.24
|
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) | |
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 NotifierBase > | m_Notifiers |
ref NotifierBase | m_NotifiersStatic [MAX_COUNT] |
PlayerBase | m_Player |
ref VirtualHud | m_VirtualHud |
int | m_MinTickTime |
string | m_System = "Notifiers" |
Definition at line 1 of file NotifiersManager.c.
Definition at line 87 of file NotifiersManager.c.
References FindNotifier(), and NotifierBase::SetActive().
Definition at line 92 of file NotifiersManager.c.
References FindNotifier(), and NotifierBase::SetActive().
NotifierBase FindNotifier | ( | int | type | ) |
Definition at line 82 of file NotifiersManager.c.
References m_NotifiersStatic.
Referenced by ActivateByType(), and DeactivateByType().
PlayerBase GetPlayer | ( | ) |
Definition at line 72 of file NotifiersManager.c.
References m_Player.
VirtualHud GetVirtualHud | ( | ) |
Definition at line 77 of file NotifiersManager.c.
References m_VirtualHud.
Referenced by ManBase::OnBleedingSourceAdded(), ManBase::OnBleedingSourceRemoved(), and ManBase::OnRPC().
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.
References m_Notifiers.
void NotifiersManager | ( | PlayerBase | player | ) |
Definition at line 36 of file NotifiersManager.c.
References Init(), m_MinTickTime, m_Notifiers, m_Player, and MIN_TICK_NOTIFIERS.
Referenced by ManBase::Init().
void OnScheduledTick | ( | ) |
Definition at line 97 of file NotifiersManager.c.
References GetPlayer(), and TickNotifiers().
Referenced by ManBase::OnTick().
void RegisterItself | ( | int | notifier_id, |
NotifierBase | modifier ) |
Definition at line 64 of file NotifiersManager.c.
References Error(), m_NotifiersStatic, and MAX_COUNT.
void TickNotifiers | ( | ) |
Definition at line 104 of file NotifiersManager.c.
References GetGame(), and m_Notifiers.
Referenced by OnScheduledTick().
int m_MinTickTime |
Definition at line 33 of file NotifiersManager.c.
Referenced by NotifiersManager().
ref array<ref NotifierBase> m_Notifiers |
Definition at line 29 of file NotifiersManager.c.
Referenced by Hud::DisplayNotifier(), Hud::DisplayTendencyNormal(), Hud::DisplayTendencyTemp(), Hud::HideTemperature(), Init(), Hud::Init(), Hud::InitBadgesAndNotifiers(), NotifiersManager(), Hud::OnResizeScreen(), Hud::RefreshHudVisibility(), Hud::SetTemperature(), and TickNotifiers().
ref NotifierBase m_NotifiersStatic[MAX_COUNT] |
Definition at line 30 of file NotifiersManager.c.
Referenced by FindNotifier(), and RegisterItself().
PlayerBase m_Player |
Definition at line 31 of file NotifiersManager.c.
string m_System = "Notifiers" |
Definition at line 34 of file NotifiersManager.c.
ref VirtualHud m_VirtualHud |
Definition at line 32 of file NotifiersManager.c.
Referenced by GetVirtualHud(), ManBase::GetVirtualHud(), ManBase::Init(), ManBase::OnPlayerLoaded(), and ManBase::OnScheduledTick().
enum eNotifiers MAX_COUNT = 64 |
Referenced by RegisterItself().