Arma Reforger Script API
|
Component of assigning and storing squad names. More...
Public Member Functions | |
override bool | GetCallsignNames (out string company, out string platoon, out string squad, out string character, out string format) |
Get the callsign names assigned. | |
override bool | GetCallsignIndexes (out int companyIndex, out int platoonIndex, out int squadIndex, out int characterNumber=-1, out ERoleCallsign characterRole=ERoleCallsign.NONE) |
Get the callsign indexes assigned. | |
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. | |
void | UpdateCharacterRoleCallsign (ERoleCallsign roleCallsignIndex) |
Updates the assigned role. | |
void | UpdateCharacterCallsignAndRole (int characterCallsign, ERoleCallsign roleCallsignIndex) |
Updates the assigned callsign and role. | |
override void | ClearCallsigns () |
Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players! | |
void | ClearCharacterRoleCallsign () |
Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast! | |
bool | GetIsCharacterAloneInGroup () |
int | GetCharacterCallsignIndex () |
Returns the character index (ignoring the role) | |
int | GetCharacterOrRoleCallsignIndex () |
Returns either the character index or, if a role is assigned, it will return the character role index instead. | |
void | GetCharacterAndRoleCallsign (out int character, out int role) |
Returns both character index and character role index. | |
bool | GetCharacterCallsignName (out string characterCallsignName) |
Returns the character callsign name, this either the character group index or the specific role name. | |
void | InitPlayerOnServer (int playerId) |
Called by Callsign Manager. | |
override bool | RplSave (ScriptBitWriter writer) |
override bool | RplLoad (ScriptBitReader reader) |
void | ~SCR_CallsignCharacterComponent () |
Public Member Functions inherited from SCR_CallsignBaseComponent | |
bool | GetCallsignNames (out string company, out string platoon, out string squad, out string character, out string format) |
Get the callsign names assigned. | |
bool | GetCallsignIndexes (out int companyIndex, out int platoonIndex, out int squadIndex, out int characterNumber=-1, out ERoleCallsign characterRole=ERoleCallsign.NONE) |
Get the callsign indexes assigned. | |
ScriptInvokerBase< SCR_CallsignBaseComponent_OnCallsignChanged > | GetOnCallsignChanged () |
override void | EOnInit (IEntity owner) |
override void | OnPostInit (IEntity owner) |
Protected Member Functions | |
void | AssignCallsignBroadcast (int company, int platoon, int squad, int character, int role, bool aloneInGroup) |
void | AssignCallsignNoRoleBroadcast (int company, int platoon, int squad, int character, bool aloneInGroup) |
void | AssignCharacterAndRoleCallsignBroadcast (int character, int role) |
void | AssignCharacterCallsignBroadcast (int character) |
void | AssignRoleCallsignBroadcast (int role) |
void | SetAloneInGroupBroadcast (bool isAloneInGroup) |
void | SetFactionBroadCast (int factionID) |
void | OnPlayerCallsignChanged (int playerId, int companyIndex, int platoonIndex, int squadIndex, int characterNumber, ERoleCallsign characterRole) |
Protected Member Functions inherited from SCR_CallsignBaseComponent | |
void | ClearCallsigns () |
bool | SetCallsignInfo () |
void | InitOnServer (IEntity owner) |
Protected Attributes | |
int | m_iCharacterCallsign = -1 |
ERoleCallsign | m_iRoleCallsign = ERoleCallsign.NONE |
bool | m_bAloneInGroup = false |
int | m_iFactioniD = -1 |
int | m_iPlayerId = 0 |
Protected Attributes inherited from SCR_CallsignBaseComponent | |
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_OnCallsignChanged > | Event_OnCallsignChanged = new ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged>() |
Component of assigning and storing squad names.
void SCR_CallsignCharacterComponent.~SCR_CallsignCharacterComponent | ( | ) |
|
protected |
|
protected |
|
protected |
void SCR_CallsignCharacterComponent.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.
[in] | faction | Faction of group |
[in] | companyIndex | Company Index |
[in] | platoonIndex | Platoon Index |
[in] | squadIndex | Squad Index |
[in] | characterNumber | Character number in squad (starts with 1) |
[in] | role | Character role (If any assigned) |
[in] | aloneInGroup | If character is alone in the group |
|
protected |
|
protected |
override void SCR_CallsignCharacterComponent.ClearCallsigns | ( | ) |
Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players!
Implements SCR_CallsignBaseComponent.
void SCR_CallsignCharacterComponent.ClearCharacterRoleCallsign | ( | ) |
Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast!
override bool SCR_CallsignCharacterComponent.GetCallsignIndexes | ( | out int | companyIndex, |
out int | platoonIndex, | ||
out int | squadIndex, | ||
out int | characterNumber = -1 , |
||
out ERoleCallsign | characterRole = ERoleCallsign::NONE |
||
) |
Get the callsign indexes assigned.
[out] | companyIndex | company index. Eg: Company Alpha is index 0 and Beta is index 1 |
[out] | platoonIndex | platoon index. Is an index similar to how Company works. |
[out] | squadIndex | squad index. Is an index similar to how Company works. |
[out] | characterNumber | character 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] | characterRole | Character 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 |
Implements SCR_CallsignBaseComponent.
override bool SCR_CallsignCharacterComponent.GetCallsignNames | ( | out string | company, |
out string | platoon, | ||
out string | squad, | ||
out string | character, | ||
out string | format | ||
) |
Get the callsign names assigned.
[out] | company | Company name |
[out] | platoon | Platoon name |
[out] | squad | Squad name |
[out] | character | Character name (Optional if callsign assigned to a character). Will return Role name if any role is assigned to the character |
[out] | format | Format of callsign |
Implements SCR_CallsignBaseComponent.
void SCR_CallsignCharacterComponent.GetCharacterAndRoleCallsign | ( | out int | character, |
out int | role | ||
) |
Returns both character index and character role index.
[out] | character | group index |
[out] | role | index |
int SCR_CallsignCharacterComponent.GetCharacterCallsignIndex | ( | ) |
Returns the character index (ignoring the role)
bool SCR_CallsignCharacterComponent.GetCharacterCallsignName | ( | out string | characterCallsignName | ) |
Returns the character callsign name, this either the character group index or the specific role name.
[out] | characterCallsignName | the character Callsign name in string |
int SCR_CallsignCharacterComponent.GetCharacterOrRoleCallsignIndex | ( | ) |
Returns either the character index or, if a role is assigned, it will return the character role index instead.
bool SCR_CallsignCharacterComponent.GetIsCharacterAloneInGroup | ( | ) |
void SCR_CallsignCharacterComponent.InitPlayerOnServer | ( | int | playerId | ) |
Called by Callsign Manager.
Makes sure that player characters listen to On Callsign Changed (Server Only)
[in] | playerId |
|
protected |
override bool SCR_CallsignCharacterComponent.RplLoad | ( | ScriptBitReader | reader | ) |
override bool SCR_CallsignCharacterComponent.RplSave | ( | ScriptBitWriter | writer | ) |
|
protected |
|
protected |
void SCR_CallsignCharacterComponent.UpdateCharacterCallsignAndRole | ( | int | characterCallsign, |
ERoleCallsign | roleCallsignIndex | ||
) |
Updates the assigned callsign and role.
Called when leader role is assigned as leader is always 1
[in] | characterCallsign | character callsign |
[in] | roleCallsignIndex | role index |
void SCR_CallsignCharacterComponent.UpdateCharacterRoleCallsign | ( | ERoleCallsign | roleCallsignIndex | ) |
Updates the assigned role.
[in] | roleCallsignIndex | role index |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |