Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CallsignBaseComponent Class Reference

Component of assigning and storing squad names. More...

Inheritance diagram for SCR_CallsignBaseComponent:
ScriptComponent

Protected Member Functions

bool GetCallsignNames (out string company, out string platoon, out string squad, out string character, out string format)
bool GetCallsignIndexes (out int companyIndex, out int platoonIndex, out int squadIndex, out int characterNumber=-1, out ERoleCallsign characterRole=ERoleCallsign.NONE)
void ClearCallsigns ()
bool SetCallsignInfo ()
ScriptInvokerBase< SCR_CallsignBaseComponent_OnCallsignChangedGetOnCallsignChanged ()
void InitOnServer (IEntity owner)
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)

Protected Attributes

Faction m_Faction
SCR_FactionCallsignInfo m_CallsignInfo
int m_iCompanyCallsign = -1
int m_iPlatoonCallsign = -1
int m_iSquadCallsign = -1
bool m_bIsServer
SCR_CallsignManagerComponent m_CallsignManager
ref ScriptInvokerBase< SCR_CallsignBaseComponent_OnCallsignChangedEvent_OnCallsignChanged = new ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged>()

Detailed Description

Component of assigning and storing squad names.

Definition at line 11 of file SCR_CallsignBaseComponent.c.

Member Function Documentation

◆ ClearCallsigns()

void SCR_CallsignBaseComponent::ClearCallsigns ( )
inlineprotected

Definition at line 56 of file SCR_CallsignBaseComponent.c.

◆ EOnInit()

override void SCR_CallsignBaseComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 113 of file SCR_CallsignBaseComponent.c.

◆ GetCallsignIndexes()

bool SCR_CallsignBaseComponent::GetCallsignIndexes ( out int companyIndex,
out int platoonIndex,
out int squadIndex,
out int characterNumber = -1,
out ERoleCallsign characterRole = ERoleCallsign.NONE )
inlineprotected

Get the callsign indexes assigned

Parameters
[out]companyIndexcompany index. Eg: Company Alpha is index 0 and Beta is index 1
[out]platoonIndexplatoon index. Is an index similar to how Company works.
[out]squadIndexsquad index. Is an index similar to how Company works.
[out]characterNumbercharacter callsign number. This is not an index. Soldier 1 will have character 1. The second soldier in the group will have character 2. Will return -1 if component is on a group
[out]characterRoleCharacter role number, roles can be checked with ERoleCallsign eg: characterRole == ERoleCallsign.SQUAD_LEADER will let you know if the character is a squad leader etc. Will return -1 if component is on a group
Returns
returns false if indexes are not assigned

Definition at line 51 of file SCR_CallsignBaseComponent.c.

◆ GetCallsignNames()

bool SCR_CallsignBaseComponent::GetCallsignNames ( out string company,
out string platoon,
out string squad,
out string character,
out string format )
inlineprotected

Get the callsign names assigned

Parameters
[out]companyCompany name
[out]platoonPlatoon name
[out]squadSquad name
[out]characterCharacter name (Optional if callsign assigned to a character). Will return Role name if any role is assigned to the character
[out]formatFormat of callsign
Returns
returns true if names are succesfully found

Definition at line 38 of file SCR_CallsignBaseComponent.c.

◆ GetOnCallsignChanged()

ScriptInvokerBase< SCR_CallsignBaseComponent_OnCallsignChanged > SCR_CallsignBaseComponent::GetOnCallsignChanged ( )
inlineprotected
Returns

Definition at line 102 of file SCR_CallsignBaseComponent.c.

◆ InitOnServer()

void SCR_CallsignBaseComponent::InitOnServer ( IEntity owner)
inlineprotected

Definition at line 108 of file SCR_CallsignBaseComponent.c.

◆ OnPostInit()

override void SCR_CallsignBaseComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 138 of file SCR_CallsignBaseComponent.c.

◆ SetCallsignInfo()

bool SCR_CallsignBaseComponent::SetCallsignInfo ( )
inlineprotected

Definition at line 66 of file SCR_CallsignBaseComponent.c.

Member Data Documentation

◆ Event_OnCallsignChanged

ref ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged> SCR_CallsignBaseComponent::Event_OnCallsignChanged = new ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged>()
protected

Definition at line 28 of file SCR_CallsignBaseComponent.c.

◆ m_bIsServer

bool SCR_CallsignBaseComponent::m_bIsServer
protected

Definition at line 22 of file SCR_CallsignBaseComponent.c.

◆ m_CallsignInfo

SCR_FactionCallsignInfo SCR_CallsignBaseComponent::m_CallsignInfo
protected

Definition at line 14 of file SCR_CallsignBaseComponent.c.

◆ m_CallsignManager

SCR_CallsignManagerComponent SCR_CallsignBaseComponent::m_CallsignManager
protected

Definition at line 25 of file SCR_CallsignBaseComponent.c.

◆ m_Faction

Faction SCR_CallsignBaseComponent::m_Faction
protected

Definition at line 13 of file SCR_CallsignBaseComponent.c.

◆ m_iCompanyCallsign

int SCR_CallsignBaseComponent::m_iCompanyCallsign = -1
protected

Definition at line 17 of file SCR_CallsignBaseComponent.c.

◆ m_iPlatoonCallsign

int SCR_CallsignBaseComponent::m_iPlatoonCallsign = -1
protected

Definition at line 18 of file SCR_CallsignBaseComponent.c.

◆ m_iSquadCallsign

int SCR_CallsignBaseComponent::m_iSquadCallsign = -1
protected

Definition at line 19 of file SCR_CallsignBaseComponent.c.


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