DayZ 1.24
|
Go to the source code of this file.
Classes | |
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) | |
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 ModifierBase > | m_ModifierList |
ref array< ref ModifierBase > | m_ModifierListArray = new array< ref ModifierBase> |
ref array< ref Param > | m_ParamList |
bool | m_AllowModifierTick = false |
const int | STORAGE_VERSION = 121 |
Enumerator | |
---|---|
TRIGGER_EVENT_OFF | |
TRIGGER_EVENT_ON_ACTIVATION | |
TRIGGER_EVENT_ON_CONNECT |
Definition at line 22 of file ModifiersManager.c.
Definition at line 2 of file ModifiersManager.c.
void ActivateModifier | ( | int | modifier_id, |
bool | triggerEvent = EActivationType.TRIGGER_EVENT_ON_ACTIVATION ) |
Definition at line 210 of file ModifiersManager.c.
References m_ModifierList.
Referenced by OnClick(), OnStoreLoad(), and ResetAll().
void AddModifier | ( | ModifierBase | modifier | ) |
Definition at line 177 of file ModifiersManager.c.
References Error(), m_ModifierList, m_ModifierListArray, and m_Player.
Referenced by Init(), and SetModifiers().
void DbgGetModifiers | ( | array< ref ModifierDebugObj > | modifiers | ) |
Definition at line 318 of file ModifiersManager.c.
References m_ModifierList.
void DeactivateAllModifiers | ( | ) |
Definition at line 204 of file ModifiersManager.c.
References m_ModifierList.
Referenced by ResetAll().
Definition at line 215 of file ModifiersManager.c.
References m_ModifierList.
Referenced by OnClick().
ModifierBase GetModifier | ( | int | modifier_id | ) |
Definition at line 297 of file ModifiersManager.c.
References m_ModifierList.
Referenced by OnStoreLoad().
Definition at line 313 of file ModifiersManager.c.
References m_ModifierList.
PlayerBase GetPlayer | ( | ) |
Definition at line 302 of file ModifiersManager.c.
References m_Player.
int GetStorageVersion | ( | ) |
Definition at line 167 of file ModifiersManager.c.
References STORAGE_VERSION.
Referenced by ManBase::OnStoreLoad().
void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
Definition at line 88 of file ModifiersManager.c.
References AddModifier().
bool IsModifierActive | ( | eModifiers | modifier_id | ) |
Definition at line 190 of file ModifiersManager.c.
References m_ModifierList.
bool IsModifiersEnable | ( | ) |
void ModifiersManager | ( | PlayerBase | player | ) |
Definition at line 79 of file ModifiersManager.c.
References Init(), m_ModifierList, m_ParamList, and m_Player.
Referenced by PluginBase::ActivateModifier(), PluginBase::DeactivateModifier(), ManBase::Init(), PluginBase::IsModifierLocked(), PluginBase::LockModifier(), PluginBase::SendRPCMods(), and PluginBase::SendRPCModsDetail().
Definition at line 195 of file ModifiersManager.c.
References m_AllowModifierTick, and m_ModifierListArray.
bool OnStoreLoad | ( | ParamsReadContext | ctx, |
int | version ) |
Definition at line 259 of file ModifiersManager.c.
References ActivateModifier(), GetModifier(), Debug::LogError(), m_ParamList, and x.
Referenced by Weapon::CopyWeaponStateFrom(), and ManBase::OnStoreLoad().
void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
Definition at line 220 of file ModifiersManager.c.
References CachedObjectsArrays::ARRAY_INT, m_ModifierList, m_ParamList, and x.
void ResetAll | ( | ) |
Definition at line 341 of file ModifiersManager.c.
References ActivateModifier(), DeactivateAllModifiers(), and IsModifierActive().
Definition at line 307 of file ModifiersManager.c.
References m_ModifierList.
Definition at line 147 of file ModifiersManager.c.
References m_AllowModifierTick, m_ModifierList, and DiagMenu::SetValue().
Definition at line 30 of file ModifiersManager.c.
Referenced by BloodRegenMdfr::Init(), BoneRegenMdfr::Init(), BleedingCheckMdfr::Init(), BlindedMdfr::Init(), BrokenArmsMdfr::Init(), BurningMdfr::Init(), FatigueMdfr::Init(), HeartAttackMdfr::Init(), HeatBufferMdfr::Init(), HemolyticReactionMdfr::Init(), PoisoningMdfr::Init(), StuffedStomachMdfr::Init(), TremorMdfr::Init(), VomitStuffedMdfr::Init(), WetMdfr::Init(), BrainDiseaseMdfr::Init(), CholeraMdfr::Init(), CommonColdMdfr::Init(), ContaminationStage1Mdfr::Init(), ContaminationStage2Mdfr::Init(), InfluenzaMdfr::Init(), SalmonellaMdfr::Init(), WoundInfectStage1Mdfr::Init(), WoundInfectStage2Mdfr::Init(), DisinfectionMdfr::Init(), HealthMdfr::Init(), HealthRegenMdfr::Init(), HeatComfortMdfr::Init(), ImmuneSystemMdfr::Init(), SalineMdfr::Init(), StomachMdfr::Init(), TestingMdfr::Init(), and ToxicityMdfr::Init().
Definition at line 31 of file ModifiersManager.c.
Referenced by AreaExposureMdfr::Init(), FeverMdfr::Init(), ContaminationStage3Mdfr::Init(), and MaskMdfr::Init().
Definition at line 32 of file ModifiersManager.c.
Referenced by AntibioticsMdfr::Init(), BloodRegenMdfr::Init(), BoneRegenMdfr::Init(), ModifierBase::Init(), CharcoalMdfr::Init(), BleedingCheckMdfr::Init(), BlindedMdfr::Init(), BrokenArmsMdfr::Init(), BrokenLegsMdfr::Init(), BurningMdfr::Init(), FeverMdfr::Init(), HeartAttackMdfr::Init(), HemolyticReactionMdfr::Init(), PoisoningMdfr::Init(), TremorMdfr::Init(), VomitStuffedMdfr::Init(), WetMdfr::Init(), BrainDiseaseMdfr::Init(), CholeraMdfr::Init(), CommonColdMdfr::Init(), ContaminationStage1Mdfr::Init(), ContaminationStage2Mdfr::Init(), ContaminationStage3Mdfr::Init(), InfluenzaMdfr::Init(), SalmonellaMdfr::Init(), TestDiseaseMdfr::Init(), WoundInfectStage1Mdfr::Init(), WoundInfectStage2Mdfr::Init(), DisinfectionMdfr::Init(), DrowningMdfr::Init(), EpinephrineMdfr::Init(), FliesMdfr::Init(), HealthMdfr::Init(), HealthRegenMdfr::Init(), HeatComfortMdfr::Init(), HungerMdfr::Init(), ImmuneSystemMdfr::Init(), ImmunityBoost::Init(), MaskMdfr::Init(), MorphineMdfr::Init(), PainKillersMdfr::Init(), SalineMdfr::Init(), ShockDamageMdfr::Init(), StomachMdfr::Init(), TestingMdfr::Init(), ThirstMdfr::Init(), and ToxicityMdfr::Init().
Definition at line 33 of file ModifiersManager.c.
Referenced by AreaExposureMdfr::Init(), and FatigueMdfr::Init().
Definition at line 77 of file ModifiersManager.c.
Referenced by IsModifiersEnable(), OnScheduledTick(), and SetModifiers().
ref map<int, ref ModifierBase> m_ModifierList |
Definition at line 74 of file ModifiersManager.c.
Referenced by ActivateModifier(), AddModifier(), DbgGetModifiers(), DeactivateAllModifiers(), DeactivateModifier(), GetModifier(), GetModifierLock(), IsModifierActive(), ModifiersManager(), OnStoreSave(), SetModifierLock(), and SetModifiers().
ref array< ref ModifierBase> m_ModifierListArray = new array< ref ModifierBase> |
Definition at line 75 of file ModifiersManager.c.
Referenced by AddModifier(), and OnScheduledTick().
Definition at line 76 of file ModifiersManager.c.
Referenced by ModifiersManager(), OnStoreLoad(), and OnStoreSave().
class ModifierDebugObj m_Player |
Definition at line 78 of file ModifiersManager.c.
Referenced by BleedingSourcesManagerBase::GetStorageVersion(), and GetStorageVersion().