Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ItemTransmitter

Защищенные члены

override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override bool IsTransmitter ()
 
void SetNextFrequency (PlayerBase player=NULL)
 
override void OnSwitchOn ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void SoundTurnedOnNoiseStart ()
 
void SoundTurnedOnNoiseStop ()
 
override void SetActions ()
 

Защищенные данные

EffectSound m_SoundLoop
 

Закрытые данные

string SOUND_RADIO_TURNED_ON = ""
 

Подробное описание

Методы

◆ IsTransmitter()

override bool IsTransmitter ( )
inlineprotected
38 {
39 return true;
40 }

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
19 {
20 if ( !super.OnStoreLoad( ctx, version ) )
21 return false;
22
23 //--- Transmitter data ---
24 //load and set tuned frequency
26 if ( !ctx.Read( tuned_frequency_idx ) )
27 {
28 SetFrequencyByIndex( 0 ); //set default
29 return false;
30 }
31 SetFrequencyByIndex( tuned_frequency_idx );
32 //---
33
34 return true;
35 }
Definition EntityAI.c:95

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
11 {
12 super.OnStoreSave( ctx );
13
14 //store tuned frequency
15 ctx.Write( GetTunedFrequencyIndex() );
16 }

◆ OnSwitchOn()

override void OnSwitchOn ( )
inlineprotected
85 {
86 if ( !GetCompEM().CanWork() )
87 {
88 GetCompEM().SwitchOff();
89 }
90 }

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprotected
93 {
94 //turn on broadcasting/receiving
95 EnableBroadcast ( true );
96 EnableReceive ( true );
97 SwitchOn ( true );
98
99 //play sound
101 }
void SoundTurnedOnNoiseStart()
Definition TransmitterBase.c:121

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected
104 {
105 //auto switch off (EM)
106 GetCompEM().SwitchOff();
107
108 //turn off broadcasting/receiving
109 EnableBroadcast ( false );
110 EnableReceive ( false );
111 SwitchOn ( false );
112
113 //stop sound
115 }
void SoundTurnedOnNoiseStop()
Definition TransmitterBase.c:126

◆ SetActions()

override void SetActions ( )
inlineprotected
132 {
133 super.SetActions();
134
138 }
ActionTuneFrequencyCB ActionContinuousBaseCB ActionTuneFrequency()
Definition ActionTuneFrequency.c:13
ActionTurnOffTransmitterCB ActionSingleUseBaseCB ActionTurnOffTransmitter()
Definition ActionTurnOffTransmitter.c:11
ActionTurnOnTransmitterCB ActionSingleUseBaseCB ActionTurnOnTransmitter()
Definition ActionTurnOnTransmitter.c:11
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220

Перекрестные ссылки ActionTuneFrequency(), ActionTurnOffTransmitter(), ActionTurnOnTransmitter() и AddAction().

◆ SetNextFrequency()

void SetNextFrequency ( PlayerBase player = NULL)
inlineprotected
44 {
45 SetNextChannel();
46
47 /*
48 if ( player )
49 {
50 DisplayRadioInfo( GetTunedFrequency().ToString(), player );
51 }
52 */
53 }

◆ SoundTurnedOnNoiseStart()

void SoundTurnedOnNoiseStart ( )
inlineprotected
122 {
123 PlaySoundSetLoop( m_SoundLoop, SOUND_RADIO_TURNED_ON, 1.0, 1.0 );
124 }
string SOUND_RADIO_TURNED_ON
Definition TransmitterBase.c:5
EffectSound m_SoundLoop
Definition TransmitterBase.c:7

◆ SoundTurnedOnNoiseStop()

void SoundTurnedOnNoiseStop ( )
inlineprotected
127 {
128 StopSoundSet( m_SoundLoop );
129 }

Поля

◆ m_SoundLoop

EffectSound m_SoundLoop
protected

◆ SOUND_RADIO_TURNED_ON

string SOUND_RADIO_TURNED_ON = ""
private

Объявления и описания членов класса находятся в файле: