Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Land_WarheadStorage_PowerStation Class Reference
Inheritance diagram for Land_WarheadStorage_PowerStation:
House

Protected Member Functions

void Land_WarheadStorage_PowerStation ()
void AnimateLever (int index, int state=-1)
void CheckStopTimer ()
void DebugPrepareGenerator ()
override void DeferredInit ()
Land_WarheadStorage_Main GetClosestBunker ()
string GetLeverComponentNameByLeverIndex (int leverIndex)
int GetLeverIndexByComponentName (string name)
PowerGeneratorStatic GetPowerGenerator ()
vector GetPowerGeneratorSpawnPos ()
void LinkPowerGeneratorServer ()
void OnAfterLoadUpdate ()
override void OnAnimationPhaseStarted (string animSource, float phase)
void OnGeneratorStart ()
void OnGeneratorStop ()
void OnLeverToggled ()
override void OnVariablesSynchronized ()
void PlayLeverSound (string leverName, int state)
void StartTimer ()
void Tick ()
void TurnAllLeversOff ()
void UpdateLeverStatesServer ()

Static Protected Member Functions

static void RegisterBunker (Land_WarheadStorage_Main bunker)
static void UnregisterBunker (Land_WarheadStorage_Main bunker)

Protected Attributes

const string GENERATOR_POS_MEMPOINT = "generator_pos"
const string LEVERS_POS_MEMPOINT = "leverup_axis"
bool m_InitBunkerState
bool m_IsPowerGeneratorRunning
int m_LastActivatedLeverId
int m_LeverStatesBits
int m_PlaySparks
PowerGeneratorStatic m_PowerGenerator
ref Timer m_UpdateTimer
const string SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"
const string SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
const string SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"

Static Protected Attributes

static ref set< Land_WarheadStorage_Mainm_Bunkers
static ref map< Land_WarheadStorage_PowerStation, Land_WarheadStorage_Mainm_BunkerStationMap = new map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main>()

Additional Inherited Members

Private Member Functions inherited from House
void ~Land_Buoy ()
override void DeferredInit ()
Private Attributes inherited from House
BuoyLight m_Light

Detailed Description

Definition at line 1 of file land_warheadstorage_powerstation.c.

Constructor & Destructor Documentation

◆ Land_WarheadStorage_PowerStation()

void Land_WarheadStorage_PowerStation ( )
inlineprotected

Definition at line 21 of file land_warheadstorage_powerstation.c.

References m_PlaySparks.

Member Function Documentation

◆ AnimateLever()

void AnimateLever ( int index,
int state = -1 )
inlineprotected

◆ CheckStopTimer()

void CheckStopTimer ( )
inlineprotected

Definition at line 131 of file land_warheadstorage_powerstation.c.

References m_UpdateTimer.

Referenced by Tick().

◆ DebugPrepareGenerator()

void DebugPrepareGenerator ( )
inlineprotected

Definition at line 366 of file land_warheadstorage_powerstation.c.

References g_Game, and m_PowerGenerator.

◆ DeferredInit()

override void DeferredInit ( )
inlineprotected

Definition at line 28 of file land_warheadstorage_powerstation.c.

References g_Game, and LinkPowerGeneratorServer().

◆ GetClosestBunker()

◆ GetLeverComponentNameByLeverIndex()

string GetLeverComponentNameByLeverIndex ( int leverIndex)
inlineprotected

◆ GetLeverIndexByComponentName()

int GetLeverIndexByComponentName ( string name)
inlineprotected

◆ GetPowerGenerator()

PowerGeneratorStatic GetPowerGenerator ( )
inlineprotected

Definition at line 83 of file land_warheadstorage_powerstation.c.

References m_PowerGenerator.

Referenced by PowerGeneratorStatic::EEOnAfterLoad().

◆ GetPowerGeneratorSpawnPos()

vector GetPowerGeneratorSpawnPos ( )
inlineprotected

Definition at line 53 of file land_warheadstorage_powerstation.c.

References GENERATOR_POS_MEMPOINT.

Referenced by LinkPowerGeneratorServer().

◆ LinkPowerGeneratorServer()

◆ OnAfterLoadUpdate()

void OnAfterLoadUpdate ( )
inlineprotected

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected

Definition at line 288 of file land_warheadstorage_powerstation.c.

References string::Contains(), and PlayLeverSound().

◆ OnGeneratorStart()

void OnGeneratorStart ( )
inlineprotected

◆ OnGeneratorStop()

◆ OnLeverToggled()

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected

◆ PlayLeverSound()

void PlayLeverSound ( string leverName,
int state )
inlineprotected

◆ RegisterBunker()

void RegisterBunker ( Land_WarheadStorage_Main bunker)
inlinestaticprotected

◆ StartTimer()

void StartTimer ( )
inlineprotected

Definition at line 124 of file land_warheadstorage_powerstation.c.

References m_UpdateTimer.

Referenced by AnimateLever().

◆ Tick()

◆ TurnAllLeversOff()

void TurnAllLeversOff ( )
inlineprotected

◆ UnregisterBunker()

void UnregisterBunker ( Land_WarheadStorage_Main bunker)
inlinestaticprotected

◆ UpdateLeverStatesServer()

void UpdateLeverStatesServer ( )
inlineprotected

Field Documentation

◆ GENERATOR_POS_MEMPOINT

const string GENERATOR_POS_MEMPOINT = "generator_pos"
protected

Definition at line 15 of file land_warheadstorage_powerstation.c.

Referenced by GetPowerGeneratorSpawnPos().

◆ LEVERS_POS_MEMPOINT

const string LEVERS_POS_MEMPOINT = "leverup_axis"
protected

Definition at line 14 of file land_warheadstorage_powerstation.c.

Referenced by PlayLeverSound().

◆ m_Bunkers

ref set<Land_WarheadStorage_Main> m_Bunkers
staticprotected

◆ m_BunkerStationMap

◆ m_InitBunkerState

bool m_InitBunkerState
protected

Definition at line 3 of file land_warheadstorage_powerstation.c.

Referenced by GetClosestBunker().

◆ m_IsPowerGeneratorRunning

bool m_IsPowerGeneratorRunning
protected

◆ m_LastActivatedLeverId

int m_LastActivatedLeverId
protected

Definition at line 9 of file land_warheadstorage_powerstation.c.

Referenced by OnLeverToggled(), and Tick().

◆ m_LeverStatesBits

int m_LeverStatesBits
protected

◆ m_PlaySparks

◆ m_PowerGenerator

◆ m_UpdateTimer

ref Timer m_UpdateTimer
protected

Definition at line 5 of file land_warheadstorage_powerstation.c.

Referenced by CheckStopTimer(), and StartTimer().

◆ SPARKLES_SOUND

const string SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"
protected

Definition at line 19 of file land_warheadstorage_powerstation.c.

Referenced by OnVariablesSynchronized().

◆ SWITCH_DOWN_SOUND

const string SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
protected

Definition at line 18 of file land_warheadstorage_powerstation.c.

Referenced by PlayLeverSound().

◆ SWITCH_UP_SOUND

const string SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"
protected

Definition at line 17 of file land_warheadstorage_powerstation.c.

Referenced by PlayLeverSound().


The documentation for this class was generated from the following file: