Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CallsignCharacterComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_CallsignCharacterComponentClass
 

Functions

override bool GetCallsignNames (out string company, out string platoon, out string squad, out string character, out string format)
 
override bool GetCallsignIndexes (out int companyIndex, out int platoonIndex, out int squadIndex, out int characterNumber=-1, out ERoleCallsign characterRole=ERoleCallsign.NONE)
 
void AssignCharacterCallsign (Faction faction, int companyIndex, int platoonIndex, int squadIndex, int characterNumber, ERoleCallsign role, bool aloneInGroup)
 
void UpdateCharacterRoleCallsign (ERoleCallsign roleCallsignIndex)
 
void UpdateCharacterCallsignAndRole (int characterCallsign, ERoleCallsign roleCallsignIndex)
 
override void ClearCallsigns ()
 Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players! More...
 
void ClearCharacterRoleCallsign ()
 Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast! More...
 
protected void AssignCallsignBroadcast (int company, int platoon, int squad, int character, int role, bool aloneInGroup)
 
protected void AssignCallsignNoRoleBroadcast (int company, int platoon, int squad, int character, bool aloneInGroup)
 
protected void AssignCharacterAndRoleCallsignBroadcast (int character, int role)
 
protected void AssignCharacterCallsignBroadcast (int character)
 
protected void AssignRoleCallsignBroadcast (int role)
 
protected void SetAloneInGroupBroadcast (bool isAloneInGroup)
 
protected void SetFactionBroadCast (int factionID)
 
bool GetIsCharacterAloneInGroup ()
 
int GetCharacterCallsignIndex ()
 
int GetCharacterOrRoleCallsignIndex ()
 
void GetCharacterAndRoleCallsign (out int character, out int role)
 
bool GetCharacterCallsignName (out string characterCallsignName)
 
protected void OnPlayerCallsignChanged (int playerId, int companyIndex, int platoonIndex, int squadIndex, int characterNumber, ERoleCallsign characterRole)
 
void InitPlayerOnServer (int playerId)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
void ~SCR_CallsignCharacterComponent ()
 

Variables

SCR_CallsignCharacterComponentClass m_iCharacterCallsign = -1
 Component of assigning and storing squad names. More...
 
protected ERoleCallsign m_iRoleCallsign = ERoleCallsign.NONE
 
protected bool m_bAloneInGroup = false
 
protected int m_iFactioniD = -1
 
protected int m_iPlayerId = 0
 

Function Documentation

◆ AssignCallsignBroadcast()

protected void AssignCallsignBroadcast ( int  company,
int  platoon,
int  squad,
int  character,
int  role,
bool  aloneInGroup 
)

Definition at line 190 of file SCR_CallsignCharacterComponent.c.

◆ AssignCallsignNoRoleBroadcast()

protected void AssignCallsignNoRoleBroadcast ( int  company,
int  platoon,
int  squad,
int  character,
bool  aloneInGroup 
)

Definition at line 204 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterAndRoleCallsignBroadcast()

protected void AssignCharacterAndRoleCallsignBroadcast ( int  character,
int  role 
)

Definition at line 217 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterCallsign()

void AssignCharacterCallsign ( Faction  faction,
int  companyIndex,
int  platoonIndex,
int  squadIndex,
int  characterNumber,
ERoleCallsign  role,
bool  aloneInGroup 
)

Called by group, assigns a specific character group index and role (if any assigned) to character within specific group

Parameters
[in]factionFaction of group
[in]companyIndexCompany Index
[in]platoonIndexPlatoon Index
[in]squadIndexSquad Index
[in]characterNumberCharacter number in squad (starts with 1)
[in]roleCharacter role (If any assigned)
[in]aloneInGroupIf character is alone in the group

Definition at line 86 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterCallsignBroadcast()

protected void AssignCharacterCallsignBroadcast ( int  character)

Definition at line 227 of file SCR_CallsignCharacterComponent.c.

◆ AssignRoleCallsignBroadcast()

protected void AssignRoleCallsignBroadcast ( int  role)

Definition at line 236 of file SCR_CallsignCharacterComponent.c.

◆ ClearCallsigns()

override void ClearCallsigns ( )

Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players!

Definition at line 171 of file SCR_CallsignCharacterComponent.c.

◆ ClearCharacterRoleCallsign()

void ClearCharacterRoleCallsign ( )

Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast!

Definition at line 180 of file SCR_CallsignCharacterComponent.c.

◆ GetCallsignIndexes()

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

Definition at line 58 of file SCR_CallsignCharacterComponent.c.

◆ GetCallsignNames()

override bool GetCallsignNames ( out string  company,
out string  platoon,
out string  squad,
out string  character,
out string  format 
)

Definition at line 17 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterAndRoleCallsign()

void GetCharacterAndRoleCallsign ( out int  character,
out int  role 
)

Returns both character index and character role index

Parameters
[out]charactergroup index
[out]roleindex

Definition at line 299 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterCallsignIndex()

int GetCharacterCallsignIndex ( )

Returns the character index (ignoring the role)

Returns
character group index

Definition at line 279 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterCallsignName()

bool GetCharacterCallsignName ( out string  characterCallsignName)

Returns the character callsign name, this either the character group index or the specific role name

Parameters
[out]characterCallsignNamethe character Callsign name in string
Returns
if name was succesfully found

Definition at line 309 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterOrRoleCallsignIndex()

int GetCharacterOrRoleCallsignIndex ( )

Returns either the character index or, if a role is assigned, it will return the character role index instead

Returns
int character group index or role index

Definition at line 287 of file SCR_CallsignCharacterComponent.c.

◆ GetIsCharacterAloneInGroup()

bool GetIsCharacterAloneInGroup ( )
Returns
is character alone in group. ALso returns true if not in a group at all

Definition at line 271 of file SCR_CallsignCharacterComponent.c.

◆ InitPlayerOnServer()

void InitPlayerOnServer ( int  playerId)

Called by Callsign Manager. Makes sure that player characters listen to On Callsign Changed (Server Only)

Parameters
[in]playerId

Definition at line 351 of file SCR_CallsignCharacterComponent.c.

◆ OnPlayerCallsignChanged()

protected void OnPlayerCallsignChanged ( int  playerId,
int  companyIndex,
int  platoonIndex,
int  squadIndex,
int  characterNumber,
ERoleCallsign  characterRole 
)

Definition at line 324 of file SCR_CallsignCharacterComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 377 of file SCR_CallsignCharacterComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 363 of file SCR_CallsignCharacterComponent.c.

◆ SetAloneInGroupBroadcast()

protected void SetAloneInGroupBroadcast ( bool  isAloneInGroup)

Definition at line 245 of file SCR_CallsignCharacterComponent.c.

◆ SetFactionBroadCast()

protected void SetFactionBroadCast ( int  factionID)

Definition at line 252 of file SCR_CallsignCharacterComponent.c.

◆ UpdateCharacterCallsignAndRole()

void UpdateCharacterCallsignAndRole ( int  characterCallsign,
ERoleCallsign  roleCallsignIndex 
)

Updates the assigned callsign and role. Called when leader role is assigned as leader is always 1

Parameters
[in]characterCallsigncharacter callsign
[in]roleCallsignIndexrole index

Definition at line 156 of file SCR_CallsignCharacterComponent.c.

◆ UpdateCharacterRoleCallsign()

void UpdateCharacterRoleCallsign ( ERoleCallsign  roleCallsignIndex)

Updates the assigned role

Parameters
[in]roleCallsignIndexrole index

Definition at line 139 of file SCR_CallsignCharacterComponent.c.

◆ ~SCR_CallsignCharacterComponent()

void ~SCR_CallsignCharacterComponent ( )

Definition at line 398 of file SCR_CallsignCharacterComponent.c.

Variable Documentation

◆ m_bAloneInGroup

protected bool m_bAloneInGroup = false

Definition at line 12 of file SCR_CallsignCharacterComponent.c.

◆ m_iCharacterCallsign

SCR_CallsignCharacterComponentClass m_iCharacterCallsign = -1

Component of assigning and storing squad names.

◆ m_iFactioniD

protected int m_iFactioniD = -1

Definition at line 13 of file SCR_CallsignCharacterComponent.c.

◆ m_iPlayerId

protected int m_iPlayerId = 0

Definition at line 14 of file SCR_CallsignCharacterComponent.c.

◆ m_iRoleCallsign

protected ERoleCallsign m_iRoleCallsign = ERoleCallsign.NONE

Definition at line 11 of file SCR_CallsignCharacterComponent.c.