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

Go to the source code of this file.

Data Structures

class  ModifierDebugObj
 

Enumerations

enum  eModifierSyncIDs {
  MODIFIER_SYNC_WOUND_INFECT_1 = 0x00000001, MODIFIER_SYNC_WOUND_INFECT_2 = 0x00000002, MODIFIER_SYNC_CONTAMINATION = 0x00000004, MODIFIER_SYNC_CONTAMINATION2 = 0x00000008,
  MODIFIER_SYNC_ZONE_EXPOSURE = 0x00000010, MODIFIER_SYNC_DROWNING = 0x00000020, MODIFIER_SYNC_FEVER = 0x00000040, LAST_INDEX
}
 
enum  EActivationType { TRIGGER_EVENT_OFF, TRIGGER_EVENT_ON_ACTIVATION, TRIGGER_EVENT_ON_CONNECT }
 

Functions

void ModifiersManager (PlayerBase player)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) More...
 
void SetModifiers (bool enable)
 
int GetStorageVersion ()
 
bool IsModifiersEnable ()
 
void AddModifier (ModifierBase modifier)
 
bool IsModifierActive (eModifiers modifier_id)
 
void OnScheduledTick (float delta_time)
 
void DeactivateAllModifiers ()
 
void ActivateModifier (int modifier_id, bool triggerEvent=EActivationType.TRIGGER_EVENT_ON_ACTIVATION)
 
void DeactivateModifier (int modifier_id, bool triggerEvent=true)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
ModifierBase GetModifier (int modifier_id)
 
PlayerBase GetPlayer ()
 
void SetModifierLock (int modifier_id, bool state)
 
bool GetModifierLock (int modifier_id)
 
void DbgGetModifiers (array< ref ModifierDebugObj > modifiers)
 
void ResetAll ()
 

Variables

const int DEFAULT_TICK_TIME_ACTIVE = 3
 
const int DEFAULT_TICK_TIME_ACTIVE_SHORT = 1
 
const int DEFAULT_TICK_TIME_INACTIVE = 3
 
const int DEFAULT_TICK_TIME_INACTIVE_LONG = 10
 
class ModifierDebugObj m_Player
 
ref map< int, ref ModifierBasem_ModifierList
 
ref array< ref ModifierBasem_ModifierListArray = new array< ref ModifierBase>
 
ref array< ref Paramm_ParamList
 
bool m_AllowModifierTick = false
 
const int STORAGE_VERSION = 121
 

Enumeration Type Documentation

◆ EActivationType

Enumerator
TRIGGER_EVENT_OFF 
TRIGGER_EVENT_ON_ACTIVATION 
TRIGGER_EVENT_ON_CONNECT 

Definition at line 24 of file modifiersmanager.c.

◆ eModifierSyncIDs

Enumerator
MODIFIER_SYNC_WOUND_INFECT_1 
MODIFIER_SYNC_WOUND_INFECT_2 
MODIFIER_SYNC_CONTAMINATION 
MODIFIER_SYNC_CONTAMINATION2 
MODIFIER_SYNC_ZONE_EXPOSURE 
MODIFIER_SYNC_DROWNING 
MODIFIER_SYNC_FEVER 
LAST_INDEX 

Definition at line 2 of file modifiersmanager.c.

Function Documentation

◆ ActivateModifier()

void ActivateModifier ( int  modifier_id,
bool  triggerEvent = EActivationType.TRIGGER_EVENT_ON_ACTIVATION 
)

Definition at line 219 of file modifiersmanager.c.

◆ AddModifier()

void AddModifier ( ModifierBase  modifier)

Definition at line 180 of file modifiersmanager.c.

◆ DbgGetModifiers()

void DbgGetModifiers ( array< ref ModifierDebugObj modifiers)

Definition at line 333 of file modifiersmanager.c.

◆ DeactivateAllModifiers()

void DeactivateAllModifiers ( )

Definition at line 211 of file modifiersmanager.c.

◆ DeactivateModifier()

void DeactivateModifier ( int  modifier_id,
bool  triggerEvent = true 
)

Definition at line 224 of file modifiersmanager.c.

◆ GetModifier()

ModifierBase GetModifier ( int  modifier_id)

Definition at line 312 of file modifiersmanager.c.

◆ GetModifierLock()

bool GetModifierLock ( int  modifier_id)

Definition at line 328 of file modifiersmanager.c.

◆ GetPlayer()

PlayerBase GetPlayer ( )

Definition at line 317 of file modifiersmanager.c.

◆ GetStorageVersion()

int GetStorageVersion ( )

Definition at line 170 of file modifiersmanager.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 89 of file modifiersmanager.c.

◆ IsModifierActive()

bool IsModifierActive ( eModifiers  modifier_id)

Definition at line 195 of file modifiersmanager.c.

◆ IsModifiersEnable()

bool IsModifiersEnable ( )

Definition at line 175 of file modifiersmanager.c.

◆ ModifiersManager()

void ModifiersManager ( PlayerBase  player)

Definition at line 80 of file modifiersmanager.c.

◆ OnScheduledTick()

void OnScheduledTick ( float  delta_time)

Definition at line 200 of file modifiersmanager.c.

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

Definition at line 270 of file modifiersmanager.c.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 229 of file modifiersmanager.c.

◆ ResetAll()

void ResetAll ( )

Definition at line 358 of file modifiersmanager.c.

◆ SetModifierLock()

void SetModifierLock ( int  modifier_id,
bool  state 
)

Definition at line 322 of file modifiersmanager.c.

◆ SetModifiers()

void SetModifiers ( bool  enable)

Definition at line 148 of file modifiersmanager.c.

Variable Documentation

◆ DEFAULT_TICK_TIME_ACTIVE

const int DEFAULT_TICK_TIME_ACTIVE = 3

Definition at line 31 of file modifiersmanager.c.

◆ DEFAULT_TICK_TIME_ACTIVE_SHORT

const int DEFAULT_TICK_TIME_ACTIVE_SHORT = 1

Definition at line 32 of file modifiersmanager.c.

◆ DEFAULT_TICK_TIME_INACTIVE

const int DEFAULT_TICK_TIME_INACTIVE = 3

Definition at line 33 of file modifiersmanager.c.

◆ DEFAULT_TICK_TIME_INACTIVE_LONG

const int DEFAULT_TICK_TIME_INACTIVE_LONG = 10

Definition at line 34 of file modifiersmanager.c.

◆ m_AllowModifierTick

bool m_AllowModifierTick = false

Definition at line 78 of file modifiersmanager.c.

◆ m_ModifierList

ref map<int, ref ModifierBase> m_ModifierList

Definition at line 75 of file modifiersmanager.c.

◆ m_ModifierListArray

ref array< ref ModifierBase> m_ModifierListArray = new array< ref ModifierBase>

Definition at line 76 of file modifiersmanager.c.

◆ m_ParamList

ref array<ref Param> m_ParamList

Definition at line 77 of file modifiersmanager.c.

◆ m_Player

class ModifierDebugObj m_Player

◆ STORAGE_VERSION

const int STORAGE_VERSION = 121

Definition at line 79 of file modifiersmanager.c.