Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlayerControllerGroupComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_PlayerControllerGroupComponentClass

Functions

int GetGroupID ()
void RequestCreateGroup ()
void RequestCreateGroupWithData (SCR_EGroupRole groupRole, bool isPrivate, string name, string description, bool joinGroup=true, bool deleteIfNoPlayer=true)
void RequestKickPlayer (int playerID)
void RequestPromoteLeader (int playerID)
void RequestPrivateGroupChange (int playerID, bool isPrivate)
void PlayerRequestToJoinPrivateGroup (int playerID, RplId groupID)
void ClearAllRequesters (RplId groupID)
int GetPlayerID ()
bool CanPlayerJoinGroup (int playerID, notnull SCR_AIGroup group)
bool CanPlayerRemoveGroup (int playerID, notnull SCR_AIGroup group)
bool IsPlayerLeader (int playerID, notnull SCR_AIGroup group)
bool IsPlayerLeaderOwnGroup ()
bool CanInvitePlayer (int playerID)
bool WasAlreadyInvited (int playerID)
void AcceptJoinPrivateGroup (int playerID, bool accept)
void InvitePlayer (int playerID)
void InviteThisPlayer (int groupID, int fromPlayerID)
void AcceptInvite ()
void DeclineInvite ()
ScriptInvoker GetOnInviteReceived ()
void OnGroupDeleted (SCR_AIGroup group)
void ResetGroupIDs_S ()
 Resets the Group ID and Selected Group ID of the player, currently only called after the player has switched factions.
void RPC_PlayerRequestToJoinPrivateGroup (int playerID, RplId groupID)
void RPC_ConfirmJoinPrivateGroup (int playerID, int groupID)
void RPC_CancelJoinPrivateGroup (int playerID, int groupID)
void RPC_DoInvitePlayer (int groupID, int fromPlayerID)
void RPC_AskInvitePlayer (int playerID)
void RPC_AskCreateGroup ()
void RpcAsk_CreateGroupWithData (SCR_EGroupRole groupRole, bool isPrivate, string name, string description, bool joinGroup, bool deleteIfNoPlayer)
void RPC_AskKickPlayer (int playerID)
void RPC_AskPromoteLeader (int playerID)
void RPC_ChangePrivateGroup (int playerID, bool isPrivate)
void RequestJoinGroup (int groupID)
void RPC_DoResetGroupIDs ()
void RPC_DoChangeGroupID (int groupID)
void OnGroupChangedDelayed (int groupId)
void RPC_AskJoinGroup (int groupID)
void RequestRemovePlayer (int playerID)
void RpcAsk_RemovePlayer (int playerID)
void RequestRemoveGroup (int groupID)
void RpcAsk_RemoveGroup (int groupID)
bool InitiateComponents (int playerID, out SCR_GroupsManagerComponent groupsManager, out SCR_PlayerControllerGroupComponent playerGroupController, out SCR_AIGroup group)
int GetSelectedGroupID ()
ScriptInvoker GetOnInviteAccepted ()
ScriptInvoker GetOnGroupChanged ()
ScriptInvoker GetOnInviteCancelled ()
ScriptInvokerInt GetOnSetSelectedGroupID ()
int GetGroupInviteIdFromIndex (int index)
void RemoveGroupInviteId (int groupId)
bool HasGroupInvites ()
bool HasInviteFromGroup (int groupId)
int GetPlayerIdFromGroupInvite (int groupId)
int GetPreviousGroupID ()
string GetGroupInviteFromPlayerName ()
void SetSelectedGroupID (int groupID)
void SetCustomNameAndDescription (SCR_AIGroup group, string name, string description, int playerId)
void RequestSetCustomGroupDescription (int groupID, string desc)
void RPC_AskSetCustomDescription (int groupID, string desc, int authorID)
void RequestSetGroupMaxMembers (int groupID, int maxMembers)
void RPC_AskSetGroupMaxMembers (int groupID, int maxMembers)
void RequestSetCustomFrequency (int groupID, int frequency)
void RequestSetNewGroupsAllowed (bool isAllowed)
void RequestSetCanPlayersChangeAttributes (bool isAllowed)
void RequestSetCustomGroupName (int groupID, string name)
void RPC_AskSetCustomName (int groupID, string name, int authorID)
void RPC_AskSetNewGroupsAllowed (bool isAllowed)
void RPC_AskSetCanPlayersChangeAttributes (bool isAllowed)
void RPC_AskSetFrequency (int groupID, int frequency)
void RequestSetGroupFlag (int groupID, int flagIndex, bool isFromImageset)
void RPC_AskSetGroupFlag (int groupID, int flagIndex, bool isFromImageset)
void RPC_ClearAllRequesters (RplId groupID)
void RequestCreateSlaveGroup (RplId rplCompID)
void RPC_AskCreateSlaveGroup (RplId rplCompID)
bool IsAICharacterInAnyGroup (SCR_ChimeraCharacter character, SCR_Faction faction)
void RequestAddAIAgent (SCR_ChimeraCharacter character, int playerID)
void RPC_AskAddAIAgent (RplId characterID, int playerID)
void AddAIToSlaveGroup (notnull IEntity controlledEntity, SCR_AIGroup group)
void RPC_AskRemoveAIAgent (RplId characterID, int playerID)
void RemoveAiFromSlaveGroup (notnull IEntity controlledEntity, SCR_AIGroup group)
void RequestRemoveAgent (SCR_ChimeraCharacter character, int playerID)
void RequestGroupLeaderVote (int playerID)
void SetGroupLeader (int playerID)
void RpcDo_SetGroupLeader (int playerID)
void SetRallyPoint (notnull SCR_MilitaryBaseComponent base, bool force)
void RpcAsk_SetRallyPoint (int playerID, int callsignId, bool force)
void RemoveRallyPoint ()
void RpcAsk_RemoveRallyPoint (int playerID)
void SetTransportUnitSourceBase (notnull SCR_TransportUnitComponent transportUnit, SCR_CampaignMilitaryBaseComponent base)
void RpcDo_AskSetTransportUnitSourceBase (int baseCallsign, RplId rplIdTransportUnitComponent)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void OnDelete (IEntity owner)
SCR_AIGroup GetPlayersGroup ()
int GetActualGroupFrequency ()
override void EOnDiag (IEntity owner, float timeSlice)
void ListGroupsFromFaction (Faction faction)
void CreateAndJoinGroup (Faction faction, bool usePredefinedData=false)

Variables

SCR_PlayerControllerGroupComponentClass m_iGroupID = -1
ref map< int, ref array< int > > m_mPlayerInvitesToGroups
ref map< int, intm_mGroupIdInvites = new map<int, int>()
ref ScriptInvoker< int, intm_OnInviteReceived
ref ScriptInvoker< intm_OnInviteAccepted
ref ScriptInvoker< intm_OnInviteCancelled
ref ScriptInvoker< intm_OnGroupChanged
ref ScriptInvokerInt m_OnSetSelectedGroupID
int m_iUISelectedGroupID = -1
int m_iPreviousGroupID = -1
string m_sGroupInviteFromPlayerName

Function Documentation

◆ AcceptInvite()

void AcceptInvite ( )
protected

Definition at line 434 of file SCR_PlayerControllerGroupComponent.c.

◆ AcceptJoinPrivateGroup()

void AcceptJoinPrivateGroup ( int playerID,
bool accept )
protected
Parameters
[in]playerID
[in]accept

Definition at line 377 of file SCR_PlayerControllerGroupComponent.c.

◆ AddAIToSlaveGroup()

void AddAIToSlaveGroup ( notnull IEntity controlledEntity,
SCR_AIGroup group )
protected

Should be only called on the server

Parameters
[in]controlledEntity
[in]group

Definition at line 1470 of file SCR_PlayerControllerGroupComponent.c.

◆ CanInvitePlayer()

bool CanInvitePlayer ( int playerID)
protected
Parameters
[in]playerID
Returns

Definition at line 327 of file SCR_PlayerControllerGroupComponent.c.

◆ CanPlayerJoinGroup()

bool CanPlayerJoinGroup ( int playerID,
notnull SCR_AIGroup group )
protected
Parameters
[in]playerID
[in]group
Returns

Definition at line 136 of file SCR_PlayerControllerGroupComponent.c.

◆ CanPlayerRemoveGroup()

bool CanPlayerRemoveGroup ( int playerID,
notnull SCR_AIGroup group )
protected

Can player remove group

Parameters
[in]playerID
[in]group
Returns
true if player can remove a group

Definition at line 252 of file SCR_PlayerControllerGroupComponent.c.

◆ ClearAllRequesters()

void ClearAllRequesters ( RplId groupID)
protected
Parameters
[in]groupID

Definition at line 114 of file SCR_PlayerControllerGroupComponent.c.

◆ CreateAndJoinGroup()

void CreateAndJoinGroup ( Faction faction,
bool usePredefinedData = false )
protected
Parameters
[in]faction
[in]usePredefinedDataUse data from the premade groups if neccesary

Definition at line 1812 of file SCR_PlayerControllerGroupComponent.c.

◆ DeclineInvite()

void DeclineInvite ( )
protected

Definition at line 461 of file SCR_PlayerControllerGroupComponent.c.

◆ GetActualGroupFrequency()

int GetActualGroupFrequency ( )
protected
Returns

Definition at line 1730 of file SCR_PlayerControllerGroupComponent.c.

◆ GetGroupID()

int GetGroupID ( )
protected
Returns

Definition at line 52 of file SCR_PlayerControllerGroupComponent.c.

◆ GetGroupInviteFromPlayerName()

string GetGroupInviteFromPlayerName ( )
protected
Returns

Definition at line 1077 of file SCR_PlayerControllerGroupComponent.c.

◆ GetGroupInviteIdFromIndex()

int GetGroupInviteIdFromIndex ( int index)
protected
Returns
groupId at the given index
Parameters
[in]index

Definition at line 1031 of file SCR_PlayerControllerGroupComponent.c.

◆ GetOnGroupChanged()

ScriptInvoker GetOnGroupChanged ( )
protected
Returns

Definition at line 1000 of file SCR_PlayerControllerGroupComponent.c.

◆ GetOnInviteAccepted()

ScriptInvoker GetOnInviteAccepted ( )
protected
Returns

Definition at line 990 of file SCR_PlayerControllerGroupComponent.c.

◆ GetOnInviteCancelled()

ScriptInvoker GetOnInviteCancelled ( )
protected
Returns

Definition at line 1010 of file SCR_PlayerControllerGroupComponent.c.

◆ GetOnInviteReceived()

ScriptInvoker GetOnInviteReceived ( )
protected
Returns

Definition at line 486 of file SCR_PlayerControllerGroupComponent.c.

◆ GetOnSetSelectedGroupID()

ScriptInvokerInt GetOnSetSelectedGroupID ( )
protected
Returns

Definition at line 1020 of file SCR_PlayerControllerGroupComponent.c.

◆ GetPlayerID()

int GetPlayerID ( )
protected
Returns

Definition at line 122 of file SCR_PlayerControllerGroupComponent.c.

◆ GetPlayerIdFromGroupInvite()

int GetPlayerIdFromGroupInvite ( int groupId)
protected
Returns
ID of the player that sent the invite

Definition at line 1060 of file SCR_PlayerControllerGroupComponent.c.

◆ GetPlayersGroup()

SCR_AIGroup GetPlayersGroup ( )
protected
Returns

Definition at line 1719 of file SCR_PlayerControllerGroupComponent.c.

◆ GetPreviousGroupID()

int GetPreviousGroupID ( )
protected
Returns
previous group id

Definition at line 1070 of file SCR_PlayerControllerGroupComponent.c.

◆ GetSelectedGroupID()

int GetSelectedGroupID ( )
protected
Returns

Definition at line 983 of file SCR_PlayerControllerGroupComponent.c.

◆ HasGroupInvites()

bool HasGroupInvites ( )
protected
Returns
true if the player has any group invites

Definition at line 1045 of file SCR_PlayerControllerGroupComponent.c.

◆ HasInviteFromGroup()

bool HasInviteFromGroup ( int groupId)
protected
Returns
true if the player has a group invite from this group already
Parameters
[in]groupId

Definition at line 1053 of file SCR_PlayerControllerGroupComponent.c.

◆ InitiateComponents()

bool InitiateComponents ( int playerID,
out SCR_GroupsManagerComponent groupsManager,
out SCR_PlayerControllerGroupComponent playerGroupController,
out SCR_AIGroup group )
protected
Parameters
[in]playerID
[out]groupsManager
[out]playerGroupController
[out]group
Returns

Definition at line 965 of file SCR_PlayerControllerGroupComponent.c.

◆ InvitePlayer()

void InvitePlayer ( int playerID)
protected
Parameters
[in]playerID

Definition at line 396 of file SCR_PlayerControllerGroupComponent.c.

◆ InviteThisPlayer()

void InviteThisPlayer ( int groupID,
int fromPlayerID )
protected
Parameters
[in]groupID
[in]fromPlayerID

Definition at line 427 of file SCR_PlayerControllerGroupComponent.c.

◆ IsAICharacterInAnyGroup()

bool IsAICharacterInAnyGroup ( SCR_ChimeraCharacter character,
SCR_Faction faction )
protected
Parameters
[in]character
[in]faction
Returns

Definition at line 1407 of file SCR_PlayerControllerGroupComponent.c.

◆ IsPlayerLeader()

bool IsPlayerLeader ( int playerID,
notnull SCR_AIGroup group )
protected
Parameters
[in]playerID
[in]group
Returns

Definition at line 296 of file SCR_PlayerControllerGroupComponent.c.

◆ IsPlayerLeaderOwnGroup()

bool IsPlayerLeaderOwnGroup ( )
protected
Returns

Definition at line 304 of file SCR_PlayerControllerGroupComponent.c.

◆ ListGroupsFromFaction()

void ListGroupsFromFaction ( Faction faction)
protected
Parameters
[in]faction

Definition at line 1792 of file SCR_PlayerControllerGroupComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 1708 of file SCR_PlayerControllerGroupComponent.c.

◆ OnGroupChangedDelayed()

void OnGroupChangedDelayed ( int groupId)
protected

Definition at line 864 of file SCR_PlayerControllerGroupComponent.c.

◆ OnGroupDeleted()

void OnGroupDeleted ( SCR_AIGroup group)
protected
Parameters
[in]group

Definition at line 496 of file SCR_PlayerControllerGroupComponent.c.

◆ PlayerRequestToJoinPrivateGroup()

void PlayerRequestToJoinPrivateGroup ( int playerID,
RplId groupID )
protected
Parameters
[in]playerID
[in]groupID

Definition at line 106 of file SCR_PlayerControllerGroupComponent.c.

◆ RemoveAiFromSlaveGroup()

void RemoveAiFromSlaveGroup ( notnull IEntity controlledEntity,
SCR_AIGroup group )
protected

Should be only called on the server

Parameters
[in]controlledEntity
[in]group

Definition at line 1528 of file SCR_PlayerControllerGroupComponent.c.

◆ RemoveGroupInviteId()

void RemoveGroupInviteId ( int groupId)
protected
Parameters
[in]groupId

Definition at line 1038 of file SCR_PlayerControllerGroupComponent.c.

◆ RemoveRallyPoint()

void RemoveRallyPoint ( )
protected

Definition at line 1641 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestAddAIAgent()

void RequestAddAIAgent ( SCR_ChimeraCharacter character,
int playerID )
protected
Parameters
[in]character
[in]playerID

Definition at line 1430 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestCreateGroup()

void RequestCreateGroup ( )
protected

Definition at line 59 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestCreateGroupWithData()

void RequestCreateGroupWithData ( SCR_EGroupRole groupRole,
bool isPrivate,
string name,
string description,
bool joinGroup = true,
bool deleteIfNoPlayer = true )
protected

Request server to create new group with specific groupRole

Parameters
[in]groupRole
[in]isPrivate
[in]name
[in]description
[in]joinGroup
[in]deleteIfNoPlayer

Definition at line 72 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestCreateSlaveGroup()

void RequestCreateSlaveGroup ( RplId rplCompID)
protected
Parameters
[in]rplCompID

Definition at line 1365 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestGroupLeaderVote()

void RequestGroupLeaderVote ( int playerID)
protected

Definition at line 1570 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestJoinGroup()

void RequestJoinGroup ( int groupID)
protected
Parameters
[in]groupID

Definition at line 830 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestKickPlayer()

void RequestKickPlayer ( int playerID)
protected
Parameters
[in]playerID

Definition at line 80 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestPrivateGroupChange()

void RequestPrivateGroupChange ( int playerID,
bool isPrivate )
protected
Parameters
[in]playerID
[in]isPrivate

Definition at line 97 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestPromoteLeader()

void RequestPromoteLeader ( int playerID)
protected
Parameters
[in]playerID

Definition at line 88 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestRemoveAgent()

void RequestRemoveAgent ( SCR_ChimeraCharacter character,
int playerID )
protected
Parameters
[in]character
[in]playerID

Definition at line 1560 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestRemoveGroup()

void RequestRemoveGroup ( int groupID)
protected

Remove group

Parameters
[in]groupID

Definition at line 932 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestRemovePlayer()

void RequestRemovePlayer ( int playerID)
protected

Remove player from group

Parameters
[in]playerID

Definition at line 901 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetCanPlayersChangeAttributes()

void RequestSetCanPlayersChangeAttributes ( bool isAllowed)
protected
Parameters
[in]isAllowed

Definition at line 1206 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetCustomFrequency()

void RequestSetCustomFrequency ( int groupID,
int frequency )
protected

Sets custom frequency (KHz) for a group. Can set frequency that is already claimed. Claims set frequency if not already claimed. Frequency set by this method will not be used by automatically created groups.

Parameters
[in]groupID
[in]frequency

Definition at line 1175 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetCustomGroupDescription()

void RequestSetCustomGroupDescription ( int groupID,
string desc )
protected
Parameters
[in]groupID
[in]desc

Definition at line 1103 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetCustomGroupName()

void RequestSetCustomGroupName ( int groupID,
string name )
protected
Parameters
[in]groupID
[in]name

Definition at line 1219 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetGroupFlag()

void RequestSetGroupFlag ( int groupID,
int flagIndex,
bool isFromImageset )
protected
Parameters
[in]groupID
[in]flagIndex
[in]isFromImageset

Definition at line 1320 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetGroupMaxMembers()

void RequestSetGroupMaxMembers ( int groupID,
int maxMembers )
protected
Parameters
[in]groupID
[in]maxMembers

Definition at line 1132 of file SCR_PlayerControllerGroupComponent.c.

◆ RequestSetNewGroupsAllowed()

void RequestSetNewGroupsAllowed ( bool isAllowed)
protected
Parameters
[in]isAllowed

Definition at line 1194 of file SCR_PlayerControllerGroupComponent.c.

◆ ResetGroupIDs_S()

void ResetGroupIDs_S ( )
protected

Resets the Group ID and Selected Group ID of the player, currently only called after the player has switched factions.

Definition at line 518 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskAddAIAgent()

void RPC_AskAddAIAgent ( RplId characterID,
int playerID )
protected
Parameters
[in]characterID
[in]playerID

Definition at line 1444 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskCreateGroup()

void RPC_AskCreateGroup ( )
protected

Definition at line 648 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskCreateSlaveGroup()

void RPC_AskCreateSlaveGroup ( RplId rplCompID)
protected
Parameters
[in]rplCompID

Definition at line 1374 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskInvitePlayer()

void RPC_AskInvitePlayer ( int playerID)
protected
Parameters
[in]playerID

Definition at line 611 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskJoinGroup()

void RPC_AskJoinGroup ( int groupID)
protected
Parameters
[in]groupID

Definition at line 873 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskKickPlayer()

void RPC_AskKickPlayer ( int playerID)
protected
Parameters
[in]playerID

Definition at line 760 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskPromoteLeader()

void RPC_AskPromoteLeader ( int playerID)
protected
Parameters
[in]playerID

Definition at line 797 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskRemoveAIAgent()

void RPC_AskRemoveAIAgent ( RplId characterID,
int playerID )
protected
Parameters
[in]characterID
[in]playerID

Definition at line 1502 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetCanPlayersChangeAttributes()

void RPC_AskSetCanPlayersChangeAttributes ( bool isAllowed)
protected
Parameters
[in]isAllowed

Definition at line 1261 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetCustomDescription()

void RPC_AskSetCustomDescription ( int groupID,
string desc,
int authorID )
protected
Parameters
[in]groupID
[in]desc
[in]authorID

Definition at line 1115 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetCustomName()

void RPC_AskSetCustomName ( int groupID,
string name,
int authorID )
protected
Parameters
[in]groupID
[in]name
[in]authorID

Definition at line 1231 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetFrequency()

void RPC_AskSetFrequency ( int groupID,
int frequency )
protected
Parameters
[in]groupID
[in]frequency

Definition at line 1275 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetGroupFlag()

void RPC_AskSetGroupFlag ( int groupID,
int flagIndex,
bool isFromImageset )
protected
Parameters
[in]groupID
[in]flagIndex
[in]isFromImageset

Definition at line 1331 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetGroupMaxMembers()

void RPC_AskSetGroupMaxMembers ( int groupID,
int maxMembers )
protected
Parameters
[in]groupID
[in]maxMembers

Definition at line 1153 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_AskSetNewGroupsAllowed()

void RPC_AskSetNewGroupsAllowed ( bool isAllowed)
protected
Parameters
[in]isAllowed

Definition at line 1248 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_CancelJoinPrivateGroup()

void RPC_CancelJoinPrivateGroup ( int playerID,
int groupID )
protected
Parameters
[in]playerID
[in]groupID

Definition at line 572 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_ChangePrivateGroup()

void RPC_ChangePrivateGroup ( int playerID,
bool isPrivate )
protected
Parameters
[in]playerID
[in]isPrivate

Definition at line 816 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_ClearAllRequesters()

void RPC_ClearAllRequesters ( RplId groupID)
protected
Parameters
[in]groupID

Definition at line 1348 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_ConfirmJoinPrivateGroup()

void RPC_ConfirmJoinPrivateGroup ( int playerID,
int groupID )
protected
Parameters
[in]playerID
[in]groupID

Definition at line 544 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_DoChangeGroupID()

void RPC_DoChangeGroupID ( int groupID)
protected
Parameters
[in]groupID

Definition at line 847 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_DoInvitePlayer()

void RPC_DoInvitePlayer ( int groupID,
int fromPlayerID )
protected
Parameters
[in]groupID
[in]fromPlayerID

Definition at line 593 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_DoResetGroupIDs()

void RPC_DoResetGroupIDs ( )
protected

Definition at line 837 of file SCR_PlayerControllerGroupComponent.c.

◆ RPC_PlayerRequestToJoinPrivateGroup()

void RPC_PlayerRequestToJoinPrivateGroup ( int playerID,
RplId groupID )
protected
Parameters
[in]playerID
[in]groupID

Definition at line 529 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcAsk_CreateGroupWithData()

void RpcAsk_CreateGroupWithData ( SCR_EGroupRole groupRole,
bool isPrivate,
string name,
string description,
bool joinGroup,
bool deleteIfNoPlayer )
protected

Definition at line 689 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcAsk_RemoveGroup()

void RpcAsk_RemoveGroup ( int groupID)
protected

Ask the server to remove a group

Parameters
[in]groupID

Definition at line 941 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcAsk_RemovePlayer()

void RpcAsk_RemovePlayer ( int playerID)
protected

Ask the server to remove a player from player group

Parameters
[in]playerID

Definition at line 910 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcAsk_RemoveRallyPoint()

void RpcAsk_RemoveRallyPoint ( int playerID)
protected

Definition at line 1648 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcAsk_SetRallyPoint()

void RpcAsk_SetRallyPoint ( int playerID,
int callsignId,
bool force )
protected

Definition at line 1615 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcDo_AskSetTransportUnitSourceBase()

void RpcDo_AskSetTransportUnitSourceBase ( int baseCallsign,
RplId rplIdTransportUnitComponent )
protected

Definition at line 1677 of file SCR_PlayerControllerGroupComponent.c.

◆ RpcDo_SetGroupLeader()

void RpcDo_SetGroupLeader ( int playerID)
protected

Definition at line 1591 of file SCR_PlayerControllerGroupComponent.c.

◆ SetCustomNameAndDescription()

void SetCustomNameAndDescription ( SCR_AIGroup group,
string name,
string description,
int playerId )
protected

Definition at line 1093 of file SCR_PlayerControllerGroupComponent.c.

◆ SetGroupLeader()

void SetGroupLeader ( int playerID)
protected

Definition at line 1584 of file SCR_PlayerControllerGroupComponent.c.

◆ SetRallyPoint()

void SetRallyPoint ( notnull SCR_MilitaryBaseComponent base,
bool force )
protected

Definition at line 1608 of file SCR_PlayerControllerGroupComponent.c.

◆ SetSelectedGroupID()

void SetSelectedGroupID ( int groupID)
protected
Parameters
[in]groupID

Definition at line 1084 of file SCR_PlayerControllerGroupComponent.c.

◆ SetTransportUnitSourceBase()

void SetTransportUnitSourceBase ( notnull SCR_TransportUnitComponent transportUnit,
SCR_CampaignMilitaryBaseComponent base )
protected

Definition at line 1662 of file SCR_PlayerControllerGroupComponent.c.

◆ WasAlreadyInvited()

bool WasAlreadyInvited ( int playerID)
protected
Parameters
[in]playerID
Returns

Definition at line 358 of file SCR_PlayerControllerGroupComponent.c.

Variable Documentation

◆ m_iGroupID

◆ m_iPreviousGroupID

int m_iPreviousGroupID = -1
protected

Definition at line 22 of file SCR_PlayerControllerGroupComponent.c.

◆ m_iUISelectedGroupID

int m_iUISelectedGroupID = -1
protected

Definition at line 21 of file SCR_PlayerControllerGroupComponent.c.

◆ m_mGroupIdInvites

ref map<int, int> m_mGroupIdInvites = new map<int, int>()
protected

Definition at line 13 of file SCR_PlayerControllerGroupComponent.c.

◆ m_mPlayerInvitesToGroups

ref map<int, ref array<int> > m_mPlayerInvitesToGroups
protected

Definition at line 10 of file SCR_PlayerControllerGroupComponent.c.

◆ m_OnGroupChanged

ref ScriptInvoker<int> m_OnGroupChanged
protected

Definition at line 18 of file SCR_PlayerControllerGroupComponent.c.

◆ m_OnInviteAccepted

ref ScriptInvoker<int> m_OnInviteAccepted
protected

Definition at line 16 of file SCR_PlayerControllerGroupComponent.c.

◆ m_OnInviteCancelled

ref ScriptInvoker<int> m_OnInviteCancelled
protected

Definition at line 17 of file SCR_PlayerControllerGroupComponent.c.

◆ m_OnInviteReceived

ref ScriptInvoker<int, int> m_OnInviteReceived
protected

Definition at line 15 of file SCR_PlayerControllerGroupComponent.c.

◆ m_OnSetSelectedGroupID

ref ScriptInvokerInt m_OnSetSelectedGroupID
protected

Definition at line 19 of file SCR_PlayerControllerGroupComponent.c.

◆ m_sGroupInviteFromPlayerName

string m_sGroupInviteFromPlayerName
protected

Definition at line 23 of file SCR_PlayerControllerGroupComponent.c.