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

Закрытые члены

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

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

Методы

◆ DisableVicinityIcon()

override bool DisableVicinityIcon ( )
inlineprivate
4 {
5 return true;
6 }

◆ IsStaticTransmitter()

override bool IsStaticTransmitter ( )
inlineprivate
37 {
38 return true;
39 }

◆ OnStoreLoad()

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

◆ OnStoreSave()

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

◆ OnSwitchOn()

override void OnSwitchOn ( )
inlineprivate
55 {
56 if ( !GetCompEM().CanWork() )
57 {
58 GetCompEM().SwitchOff();
59 }
60 }

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprivate
63 {
64 //turn on broadcasting/receiving
65 EnableBroadcast ( true );
66 EnableReceive ( true );
67 SwitchOn ( true );
68 }

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprivate
71 {
72 //auto switch off (EM)
73 GetCompEM().SwitchOff();
74
75 //turn off broadcasting/receiving
76 EnableBroadcast ( false );
77 EnableReceive ( false );
78 SwitchOn ( false );
79 }

◆ SetActions()

override void SetActions ( )
inlineprivate
82 {
83 super.SetActions();
84
86 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionTuneFrequencyOnGround.c:2

Перекрестные ссылки AddAction().

◆ SetNextFrequency()

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

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