|
Arma Reforger Script API
|
Determinates if the owner entity is covered by the radio signal eminating from the component marked as Source with the same encryption key. More...
Public Member Functions | |
| void | SetIsSource (bool isSource) |
| bool | IsSource () |
| bool | WasPowered () |
| void | PrepareCoverageUpdate (string encryptionKey, bool signature) |
| void | FinishCoverageUpdate (string encryptionKey) |
| void | GetRadiosInRange (notnull array< SCR_CoverageRadioComponent > radios) |
| void | GetRadiosInRangeOf (notnull array< SCR_CoverageRadioComponent > radios) |
| int | GetRadiosInRangeCount (string encryptionFilter="") |
| Returns the amount of radios which are covered by this radio's signal. | |
| int | GetRadiosInRangeOfCount (string encryptionFilter="") |
| Returns the amount of radios which are covering this radio with their signal. | |
| bool | ConnectedRadiosContain (notnull SCR_CoverageRadioComponent radio, bool inMyRange) |
| Returns true if the provided radio is covered by this radio or vice versa, depending on the direction parameter. | |
| float | GetSavedRange () |
| string | GetSavedEncryption () |
| SCR_ERadioCoverageStatus | GetCoverageByEncryption (string encryptionKey) |
| void | AddRadioInRange (notnull SCR_CoverageRadioComponent component) |
| void | RemoveRadioInRange (notnull SCR_CoverageRadioComponent component) |
| void | AddRadioInRangeOf (notnull SCR_CoverageRadioComponent component) |
| void | RemoveRadioInRangeOf (notnull SCR_CoverageRadioComponent component) |
| void | OnPowerToggle (bool powered) |
| void | OnRangeChanged (float newRange) |
| void | OnEncryptionChanged (string newEncryptionKey) |
| ScriptInvokerVoid | GetOnCoverageChanged () |
| void | Ping (string encryptionKey, bool signalSignature, bool reverse=false) |
| override void | OnInit (IEntity owner) |
| Called during EOnInit. | |
| override void | OnPostInit (IEntity owner) |
| Called after all components are initialized. | |
| void | ~SCR_CoverageRadioComponent () |
Public Member Functions inherited from ScriptedRadioComponent | |
| void | OnFrame (IEntity owner, float timeSlice) |
| Called during EOnFrame. | |
Public Member Functions inherited from BaseRadioComponent | |
| proto external IEntity | GetOwner () |
| proto external int | TransceiversCount () |
| proto external BaseTransceiver | GetTransceiver (int idx) |
| proto external void | SetEncryptionKey (string key) |
| proto external string | GetEncryptionKey () |
| proto external void | SetPower (bool powered) |
| Sets the power state of whole radio. | |
| proto external bool | IsPowered () |
| proto external bool | IsEditorRadio () |
| proto external void | SetTransceiverFrequency (BaseTransceiver transceiver, int freq) |
| Set frequency of transceiver and sync with server. | |
Public Member Functions inherited from GameComponent | |
| bool | OnTicksOnRemoteProxy () |
Protected Member Functions | |
| void | OnCoverageChanged () |
Protected Member Functions inherited from BaseRadioComponent | |
| void | OnTansceiverFrequencyChanged (BaseTransceiver transceiver, int oldFreq, int newFreq) |
| Event invoked on client and server when frequency is changed. | |
| void | OnTansceiverRangeChanged (BaseTransceiver transceiver, float oldRange, float newRange) |
| Event invoked on client and server when range is changed. | |
| void | OnPowerChanged (bool powered) |
| Event invoked on client and server when power is changed. | |
| void | OnEncryptionKeyChanged (string newKey) |
| Event invoked on client and server when encryption key is changed. | |
Protected Attributes | |
| bool | m_bIsSource |
| bool | m_bWasPowered = true |
| bool | m_bLastSignalSignature |
| bool | m_bCouldSend |
| bool | m_bCouldReceive |
| float | m_fSavedRange |
| string | m_sSavedEncryptionKey |
| ref ScriptInvokerVoid | m_OnCoverageChanged |
| ref array< SCR_CoverageRadioComponent > | m_aRadiosInRange = {} |
| ref array< SCR_CoverageRadioComponent > | m_aInRangeOfRadios = {} |
| ref map< string, SCR_ERadioCoverageStatus > | m_mCoverage = new map<string, SCR_ERadioCoverageStatus>() |
| ref array< string > | m_aEncryptionKeyCoverSend = {} |
| ref array< string > | m_aEncryptionKeyCoverReceive = {} |
Additional Inherited Members | |
Public Attributes inherited from BaseRadioComponent | |
| ref ScriptInvoker< BaseTransceiver, int, int > | m_OnTansceiverFrequencyChangedInvoker = new ScriptInvoker<BaseTransceiver, int, int>() |
| ref ScriptInvoker< BaseTransceiver, float, float > | m_OnTansceiverRangeChangedInvoker = new ScriptInvoker<BaseTransceiver, float, float>() |
| ref ScriptInvoker< bool > | m_OnPowerChanged = new ScriptInvoker<bool>() |
| ref ScriptInvoker< string > | m_OnEncryptionKeyChanged = new ScriptInvoker<string>() |
Determinates if the owner entity is covered by the radio signal eminating from the component marked as Source with the same encryption key.
| void SCR_CoverageRadioComponent.~SCR_CoverageRadioComponent | ( | ) |
| void SCR_CoverageRadioComponent.AddRadioInRange | ( | notnull SCR_CoverageRadioComponent | component | ) |
| void SCR_CoverageRadioComponent.AddRadioInRangeOf | ( | notnull SCR_CoverageRadioComponent | component | ) |
| bool SCR_CoverageRadioComponent.ConnectedRadiosContain | ( | notnull SCR_CoverageRadioComponent | radio, |
| bool | inMyRange ) |
Returns true if the provided radio is covered by this radio or vice versa, depending on the direction parameter.
| void SCR_CoverageRadioComponent.FinishCoverageUpdate | ( | string | encryptionKey | ) |
| SCR_ERadioCoverageStatus SCR_CoverageRadioComponent.GetCoverageByEncryption | ( | string | encryptionKey | ) |
| ScriptInvokerVoid SCR_CoverageRadioComponent.GetOnCoverageChanged | ( | ) |
| void SCR_CoverageRadioComponent.GetRadiosInRange | ( | notnull array< SCR_CoverageRadioComponent > | radios | ) |
| int SCR_CoverageRadioComponent.GetRadiosInRangeCount | ( | string | encryptionFilter = "" | ) |
Returns the amount of radios which are covered by this radio's signal.
| void SCR_CoverageRadioComponent.GetRadiosInRangeOf | ( | notnull array< SCR_CoverageRadioComponent > | radios | ) |
| int SCR_CoverageRadioComponent.GetRadiosInRangeOfCount | ( | string | encryptionFilter = "" | ) |
Returns the amount of radios which are covering this radio with their signal.
| string SCR_CoverageRadioComponent.GetSavedEncryption | ( | ) |
| float SCR_CoverageRadioComponent.GetSavedRange | ( | ) |
| bool SCR_CoverageRadioComponent.IsSource | ( | ) |
|
protected |
| void SCR_CoverageRadioComponent.OnEncryptionChanged | ( | string | newEncryptionKey | ) |
| override void SCR_CoverageRadioComponent.OnInit | ( | IEntity | owner | ) |
Called during EOnInit.
| owner | Entity this component is attached to. |
Implements ScriptedRadioComponent.
| override void SCR_CoverageRadioComponent.OnPostInit | ( | IEntity | owner | ) |
Called after all components are initialized.
| owner | Entity this component is attached to. |
Implements ScriptedRadioComponent.
| void SCR_CoverageRadioComponent.OnPowerToggle | ( | bool | powered | ) |
| void SCR_CoverageRadioComponent.OnRangeChanged | ( | float | newRange | ) |
| void SCR_CoverageRadioComponent.Ping | ( | string | encryptionKey, |
| bool | signalSignature, | ||
| bool | reverse = false ) |
| void SCR_CoverageRadioComponent.PrepareCoverageUpdate | ( | string | encryptionKey, |
| bool | signature ) |
| void SCR_CoverageRadioComponent.RemoveRadioInRange | ( | notnull SCR_CoverageRadioComponent | component | ) |
| void SCR_CoverageRadioComponent.RemoveRadioInRangeOf | ( | notnull SCR_CoverageRadioComponent | component | ) |
| void SCR_CoverageRadioComponent.SetIsSource | ( | bool | isSource | ) |
| bool SCR_CoverageRadioComponent.WasPowered | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |