DIFF

class Land_WarheadStorage_PowerStationSource

Land_WarheadStorage_PowerStation House BuildingBase Building EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

void Land_WarheadStorage_PowerStation()

Constants 5

protected const string LEVERS_POS_MEMPOINT = "leverup_axis"
Referenced by PlayLeverSound()
protected const string GENERATOR_POS_MEMPOINT = "generator_pos"
protected const string SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"
Referenced by PlayLeverSound()
protected const string SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
Referenced by PlayLeverSound()
protected const string SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"

Members 9

protected bool m_InitBunkerState

if generator is running already, used for initial power setup of related bunker

Referenced by GetClosestBunker()
protected static ref set<Land_WarheadStorage_Main> m_Bunkers
protected ref Timer m_UpdateTimer
Referenced by CheckStopTimer(), and StartTimer()
protected bool m_IsPowerGeneratorRunning
protected int m_PlaySparks
protected int m_LastActivatedLeverId
Referenced by OnLeverToggled(), and Tick()
protected int m_LeverStatesBits

is persistent through power generator

protected static ref map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main> m_BunkerStationMap = new map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main>()
Referenced by GetClosestBunker()

Methods 23

void PlayLeverSound(string leverName, int state)
protected void StartTimer()
Referenced by AnimateLever()
protected void CheckStopTimer()
Referenced by Tick()
protected void TurnAllLeversOff()
string GetLeverComponentNameByLeverIndex(int leverIndex)
Referenced by AnimateLever(), OnAfterLoadUpdate(), Tick()
Show 1 more, TurnAllLeversOff()
protected void UpdateLeverStatesServer()
Referenced by Tick()
override void OnAnimationPhaseStarted(string animSource, float phase)
static void RegisterBunker(Land_WarheadStorage_Main bunker)
References set.Insert(), and m_Bunkers
static void UnregisterBunker(Land_WarheadStorage_Main bunker)
References ErrorEx(), set.Find(), set.Remove()
Show 1 more, m_Bunkers