Private Member Functions | |
void | Land_WarheadStorage_PowerStation () |
override void | DeferredInit () |
override void | OnVariablesSynchronized () |
vector | GetPowerGeneratorSpawnPos () |
protected void | LinkPowerGeneratorServer () |
PowerGeneratorStatic | GetPowerGenerator () |
void | AnimateLever (int index, int state=-1) |
void | PlayLeverSound (string leverName, int state) |
protected void | StartTimer () |
protected void | CheckStopTimer () |
void | Tick () |
protected void | OnLeverToggled () |
protected void | TurnAllLeversOff () |
string | GetLeverComponentNameByLeverIndex (int leverIndex) |
int | GetLeverIndexByComponentName (string name) |
protected void | UpdateLeverStatesServer () |
void | OnGeneratorStart () |
void | OnGeneratorStop () |
override void | OnAnimationPhaseStarted (string animSource, float phase) |
Land_WarheadStorage_Main | GetClosestBunker () |
protected void | DebugPrepareGenerator () |
void | OnAfterLoadUpdate () |
Static Private Member Functions | |
static void | RegisterBunker (Land_WarheadStorage_Main bunker) |
static void | UnregisterBunker (Land_WarheadStorage_Main bunker) |
Private Attributes | |
protected bool | m_InitBunkerState |
protected ref Timer | m_UpdateTimer |
protected PowerGeneratorStatic | m_PowerGenerator |
protected bool | m_IsPowerGeneratorRunning |
protected int | m_PlaySparks |
protected int | m_LastActivatedLeverId |
protected int | m_LeverStatesBits |
protected const string | LEVERS_POS_MEMPOINT = "leverup_axis" |
protected const string | GENERATOR_POS_MEMPOINT = "generator_pos" |
protected const string | SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet" |
protected const string | SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet" |
protected const string | SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet" |
Static Private Attributes | |
static protected ref set< Land_WarheadStorage_Main > | m_Bunkers |
static protected ref map< Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main > | m_BunkerStationMap = new map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main>() |
|
inlineprivate |
References m_PlaySparks.
References GetGame(), GetLeverComponentNameByLeverIndex(), and StartTimer().
Referenced by OnAfterLoadUpdate(), ActionOperatePanelPowerStation::OnStart(), and TurnAllLeversOff().
|
inlineprivate |
References m_UpdateTimer.
Referenced by Tick().
|
inlineprivate |
References GetGame(), and m_PowerGenerator.
|
inlineprivate |
References GetGame(), LinkPowerGeneratorServer(), and CGame::RegisterNetworkStaticObject().
|
inlineprivate |
References vector::DistanceSq(), GetGame(), GetPosition, CGame::IsServer(), m_Bunkers, m_BunkerStationMap, m_InitBunkerState, m_PowerGenerator, and Land_WarheadStorage_Main::SetPowerServer().
Referenced by OnGeneratorStart(), OnGeneratorStop(), PowerGeneratorStatic::SetLowEnergyState(), and UpdateLeverStatesServer().
Referenced by AnimateLever(), OnAfterLoadUpdate(), Tick(), and TurnAllLeversOff().
References name.
Referenced by ActionOperatePanelPowerStation::ActionCondition(), and ActionOperatePanelPowerStation::OnStart().
|
inlineprivate |
References m_PowerGenerator.
Referenced by PowerGeneratorStatic::EEOnAfterLoad().
|
inlineprivate |
References GENERATOR_POS_MEMPOINT.
Referenced by LinkPowerGeneratorServer().
|
inlineprivate |
References ECE_CREATEPHYSICS, ECE_NOLIFETIME, ECE_SETUP, ECE_UPDATEPATHGRAPH, PowerGeneratorStatic::GetClosestGenerator(), GetGame(), GetOrientation(), GetPowerGeneratorSpawnPos(), m_PowerGenerator, OnAfterLoadUpdate(), OnGeneratorStart(), RF_IGNORE, and PowerGeneratorStatic::SetParent().
Referenced by DeferredInit().
|
inlineprivate |
References AnimateLever(), GetLeverComponentNameByLeverIndex(), PowerGeneratorStatic::GetStoredLeverBits(), and m_PowerGenerator.
Referenced by LinkPowerGeneratorServer().
References string::Contains(), and PlayLeverSound().
|
inlineprivate |
References GetClosestBunker(), GetGame(), m_IsPowerGeneratorRunning, m_PlaySparks, and Land_WarheadStorage_Main::SetPowerServer().
Referenced by LinkPowerGeneratorServer(), and PowerGeneratorStatic::OnWorkStart().
|
inlineprivate |
References GetClosestBunker(), GetGame(), m_IsPowerGeneratorRunning, Land_WarheadStorage_Main::SetPowerServer(), and TurnAllLeversOff().
Referenced by PowerGeneratorStatic::OnWorkStop().
|
inlineprivate |
References Math::GetNumberOfSetBits(), m_IsPowerGeneratorRunning, m_LastActivatedLeverId, m_LeverStatesBits, m_PlaySparks, m_PowerGenerator, and TurnAllLeversOff().
Referenced by Tick().
|
inlineprivate |
References LEVERS_POS_MEMPOINT, EffectSound::SetAutodestroy(), SWITCH_DOWN_SOUND, and SWITCH_UP_SOUND.
Referenced by OnAnimationPhaseStarted().
|
inlinestaticprivate |
References m_Bunkers.
Referenced by Land_WarheadStorage_Main::Land_WarheadStorage_Main().
|
inlineprivate |
References m_UpdateTimer.
Referenced by AnimateLever().
|
inlineprivate |
|
inlineprivate |
References AnimateLever(), and GetLeverComponentNameByLeverIndex().
Referenced by OnGeneratorStop(), and OnLeverToggled().
|
inlinestaticprivate |
References ErrorEx, and m_Bunkers.
Referenced by Land_WarheadStorage_Main::~Land_WarheadStorage_Main().
|
inlineprivate |
References GetClosestBunker(), m_LeverStatesBits, and Land_WarheadStorage_Main::SetLeverStatesServer().
Referenced by Tick().
|
private |
Referenced by GetPowerGeneratorSpawnPos().
|
private |
Referenced by PlayLeverSound().
|
staticprivate |
Referenced by GetClosestBunker(), RegisterBunker(), and UnregisterBunker().
|
staticprivate |
Referenced by GetClosestBunker().
|
private |
Referenced by GetClosestBunker().
|
private |
Referenced by OnGeneratorStart(), OnGeneratorStop(), and OnLeverToggled().
|
private |
Referenced by OnLeverToggled(), and Tick().
|
private |
Referenced by OnLeverToggled(), Tick(), and UpdateLeverStatesServer().
|
private |
Referenced by Land_WarheadStorage_PowerStation(), OnGeneratorStart(), OnLeverToggled(), and OnVariablesSynchronized().
|
private |
|
private |
Referenced by CheckStopTimer(), and StartTimer().
|
private |
Referenced by OnVariablesSynchronized().
|
private |
Referenced by PlayLeverSound().
|
private |
Referenced by PlayLeverSound().