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

Private Member Functions

override bool IsTransmitter ()
 
override void OnSwitchOn ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void SetActions ()
 

Detailed Description

Definition at line 1 of file Megaphone.c.

Member Function Documentation

◆ IsTransmitter()

override bool ItemMegaphone::IsTransmitter ( )
inlineprivate

Definition at line 3 of file Megaphone.c.

4 {
5 return true;
6 }

◆ OnSwitchOn()

override void ItemMegaphone::OnSwitchOn ( )
inlineprivate

Definition at line 9 of file Megaphone.c.

10 {
11 if (!GetCompEM().CanWork())
12 GetCompEM().SwitchOff();
13 }

◆ OnWorkStart()

override void ItemMegaphone::OnWorkStart ( )
inlineprivate

Definition at line 15 of file Megaphone.c.

16 {
17 //turn device on
18 SwitchOn(true); // Note: This is not Energy Manager function. This is engine function.
19 }

◆ OnWorkStop()

override void ItemMegaphone::OnWorkStop ( )
inlineprivate

Definition at line 21 of file Megaphone.c.

22 {
23 //auto switch off (EM)
24 GetCompEM().SwitchOff();
25
26 //turn off device
27 SwitchOn(false); // Note: This is not Energy Manager function. This is engine function.
28 }

◆ SetActions()

override void ItemMegaphone::SetActions ( )
inlineprivate

Definition at line 34 of file Megaphone.c.

35 {
36 super.SetActions();
37
41 }
ActionRaiseMegaphoneCB ActionContinuousBaseCB ActionRaiseMegaphone()
ActionTurnOffTransmitterCB ActionSingleUseBaseCB ActionTurnOffTransmitter()
ActionTurnOnTransmitterCB ActionSingleUseBaseCB ActionTurnOnTransmitter()
void AddAction(typename actionName)

References ActionRaiseMegaphone(), ActionTurnOffTransmitter(), ActionTurnOnTransmitter(), and AddAction().


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