Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
BaseRadioComponent.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
15
16class BaseRadioComponent: GameComponent
17{
22
26 proto external IEntity GetOwner();
28 proto external int TransceiversCount();
30 proto external BaseTransceiver GetTransceiver(int idx);
34 proto external void SetEncryptionKey(string key);
38 proto external string GetEncryptionKey();
42 proto external void SetPower(bool powered);
46 proto external bool IsPowered();
47 /*
48 * \return true if radio is attached to the EditorManagerEntity.
49 */
50 proto external bool IsEditorRadio();
54 proto external void SetTransceiverFrequency(BaseTransceiver transceiver, int freq);
55
56 // callbacks
57
59 event protected void OnTansceiverFrequencyChanged(BaseTransceiver transceiver, int oldFreq, int newFreq) { m_OnTansceiverFrequencyChangedInvoker.Invoke(transceiver, oldFreq, newFreq); };
61 event protected void OnTansceiverRangeChanged(BaseTransceiver transceiver, float oldRange, float newRange) { m_OnTansceiverRangeChangedInvoker.Invoke(transceiver, oldRange, newRange); };
63 event protected void OnPowerChanged(bool powered) { m_OnPowerChanged.Invoke(powered); };
65 event protected void OnEncryptionKeyChanged(string newKey) { m_OnEncryptionKeyChanged.Invoke(newKey); };
66}
67
IEntity GetOwner()
Owner entity of the fuel tank.
proto external string GetEncryptionKey()
ref ScriptInvoker< string > m_OnEncryptionKeyChanged
void OnTansceiverRangeChanged(BaseTransceiver transceiver, float oldRange, float newRange)
Event invoked on client and server when range is changed.
proto external int TransceiversCount()
ref ScriptInvoker< BaseTransceiver, float, float > m_OnTansceiverRangeChangedInvoker
proto external void SetPower(bool powered)
proto external bool IsEditorRadio()
void OnPowerChanged(bool powered)
Event invoked on client and server when power is changed.
proto external void SetTransceiverFrequency(BaseTransceiver transceiver, int freq)
proto external BaseTransceiver GetTransceiver(int idx)
proto external void SetEncryptionKey(string key)
void OnEncryptionKeyChanged(string newKey)
Event invoked on client and server when encryption key is changed.
proto external bool IsPowered()
ref ScriptInvoker< bool > m_OnPowerChanged
void OnTansceiverFrequencyChanged(BaseTransceiver transceiver, int oldFreq, int newFreq)
Event invoked on client and server when frequency is changed.
BaseRadioComponentClass m_OnTansceiverFrequencyChangedInvoker
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134