DayZ 1.24
Loading...
Searching...
No Matches
StaticTransmitter Class Reference

Private Member Functions

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 ()
 

Detailed Description

Definition at line 1 of file Land_Radio_PanelBig.c.

Member Function Documentation

◆ DisableVicinityIcon()

override bool StaticTransmitter::DisableVicinityIcon ( )
inlineprivate

Definition at line 3 of file Land_Radio_PanelBig.c.

4 {
5 return true;
6 }

◆ IsStaticTransmitter()

override bool StaticTransmitter::IsStaticTransmitter ( )
inlineprivate

Definition at line 36 of file Land_Radio_PanelBig.c.

37 {
38 return true;
39 }

◆ OnStoreLoad()

override bool StaticTransmitter::OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate

Definition at line 17 of file Land_Radio_PanelBig.c.

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 }

◆ OnStoreSave()

override void StaticTransmitter::OnStoreSave ( ParamsWriteContext ctx)
inlineprivate

Definition at line 9 of file Land_Radio_PanelBig.c.

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

◆ OnSwitchOn()

override void StaticTransmitter::OnSwitchOn ( )
inlineprivate

Definition at line 54 of file Land_Radio_PanelBig.c.

55 {
56 if (!GetCompEM().CanWork())
57 GetCompEM().SwitchOff();
58 }

◆ OnWorkStart()

override void StaticTransmitter::OnWorkStart ( )
inlineprivate

Definition at line 60 of file Land_Radio_PanelBig.c.

61 {
62 //turn on broadcasting/receiving
63 EnableBroadcast(true);
64 EnableReceive(true);
65 SwitchOn(true);
66 }

◆ OnWorkStop()

override void StaticTransmitter::OnWorkStop ( )
inlineprivate

Definition at line 68 of file Land_Radio_PanelBig.c.

69 {
70 //auto switch off (EM)
71 GetCompEM().SwitchOff();
72
73 //turn off broadcasting/receiving
74 EnableBroadcast(false);
75 EnableReceive(false);
76 SwitchOn(false);
77 }

◆ SetActions()

override void StaticTransmitter::SetActions ( )
inlineprivate

Definition at line 79 of file Land_Radio_PanelBig.c.

80 {
81 super.SetActions();
82
84 }
void AddAction(typename actionName)

References AddAction().

◆ SetNextFrequency()

void StaticTransmitter::SetNextFrequency ( PlayerBase player = NULL)
inlineprivate

Definition at line 41 of file Land_Radio_PanelBig.c.

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

The documentation for this class was generated from the following file: