5 string SOUND_RADIO_TURNED_ON =
"";
15 ctx.Write(GetTunedFrequencyIndex());
20 if (!
super.OnStoreLoad(
ctx, version))
28 SetFrequencyByIndex(0);
86 if (!GetCompEM().CanWork())
87 GetCompEM().SwitchOff();
93 EnableBroadcast(
true);
98 SoundTurnedOnNoiseStart();
104 GetCompEM().SwitchOff();
107 EnableBroadcast(
false);
108 EnableReceive(
false);
112 SoundTurnedOnNoiseStop();
121 PlaySoundSetLoop(m_SoundLoop, SOUND_RADIO_TURNED_ON, 1.0, 1.0);
126 StopSoundSet(m_SoundLoop);
ActionTuneFrequencyCB ActionContinuousBaseCB ActionTuneFrequency()
ActionTurnOffTransmitterCB ActionSingleUseBaseCB ActionTurnOffTransmitter()
ActionTurnOnTransmitterCB ActionSingleUseBaseCB ActionTurnOnTransmitter()
void AddAction(typename actionName)
Wrapper class for managing sound through SEffectManager.
override void SetActions()
override void OnSwitchOn()
void SoundTurnedOnNoiseStart()
void SetNextFrequency(PlayerBase player=NULL)
override void OnWorkStop()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
void SoundTurnedOnNoiseStop()
override void OnStoreSave(ParamsWriteContext ctx)
override void OnWorkStart()
override bool IsTransmitter()
Serialization general interface. Serializer API works with: