This component should be attached to a PlayerController.
More...
|
| SCR_SpawnLockComponent | GetLock () |
| |
| bool | IsOwner () |
| |
| bool | IsProxy () |
| |
| override void | OnPostInit (IEntity owner) |
| | Called after all components are initialized.
|
| |
| void | Rpc_RequestFaction_S (int factionIndex) |
| | Ask the authority to assign provided faction.
|
| |
| void | SendRequestFactionResponse_S (int factionIndex, bool response) |
| | Authority: Sends response to the owner whether faction assignation was successfull or not.
|
| |
| void | RequestFactionResponse_O (int factionIndex, bool response) |
| | Owner: Response from the authority about whether faction was set successfully or not.
|
| |
| void | Rpc_CanRequestFaction_S (int factionIndex) |
| | Ask the authority to whether provided faction can be assigned.
|
| |
| bool | CanRequestFaction_S (Faction faction) |
| | Authority: Handles ask request on the authority:
|
| |
| void | SendCanRequestFactionResponse_S (int factionIndex, bool response) |
| | Authority: Sends response to the owner whether faction assignation can be done or not.
|
| |
| void | CanRequestFactionResponse_O (int factionIndex, bool response) |
| | Owner: Response from the authority about whether faction was set successfully or not.
|
| |
| override void | OnFactionChanged (Faction previous, Faction current) |
| |
| void | OnCompartmentEntering (IEntity vehicle, IEntity occupant, BaseCompartmentSlot compartment, bool move) |
| |
| void | OnCompartmentEntered (IEntity vehicle, IEntity occupant, BaseCompartmentSlot compartment, bool move) |
| |
| void | OnCompartmentLeft (IEntity vehicle, IEntity occupant, BaseCompartmentSlot compartment, bool move) |
| |
This component should be attached to a PlayerController.
It manages player-specific faction and the communication between player and authority regarding so.
◆ CanRequestFaction()
| bool SCR_PlayerFactionAffiliationComponent.CanRequestFaction |
( |
Faction | faction | ) |
|
Sends a can-ask request to the authority.
NOTE: This is not the final result of the assignation. That result is can be listened to by hooking onto GetOnCanPlayerFactionResponseInvoker(), successful request will have a response of SCR_ESpawnResult.OK.
- Parameters
-
- Returns
- true if request was sent, false if request was caught (on owner, still!) because it was invalid.
◆ CanRequestFaction_S()
| bool SCR_PlayerFactionAffiliationComponent.CanRequestFaction_S |
( |
Faction | faction | ) |
|
|
protected |
Authority: Handles ask request on the authority:
- Parameters
-
- Returns
- Returns true if faction can be assigned successfully.
◆ CanRequestFactionResponse_O()
| void SCR_PlayerFactionAffiliationComponent.CanRequestFactionResponse_O |
( |
int | factionIndex, |
|
|
bool | response ) |
|
protected |
Owner: Response from the authority about whether faction was set successfully or not.
- Parameters
-
| [in] | factionIndex | |
| [in] | response | |
◆ GetLock()
◆ GetOnCanPlayerFactionRequestInvoker_O()
| OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.GetOnCanPlayerFactionRequestInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a faction change from the authority.
◆ GetOnCanPlayerFactionRequestInvoker_S()
| OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.GetOnCanPlayerFactionRequestInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a faction change from the authority.
◆ GetOnCanPlayerFactionResponseInvoker_O()
| OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.GetOnCanPlayerFactionResponseInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding faction change.
◆ GetOnCanPlayerFactionResponseInvoker_S()
| OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.GetOnCanPlayerFactionResponseInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding faction change.
◆ GetOnPlayerFactionChangedInvoker()
| OnPlayerFactionChangedInvoker SCR_PlayerFactionAffiliationComponent.GetOnPlayerFactionChangedInvoker |
( |
| ) |
|
- Returns
- an invoker that is invoked after change of affliated faction on client and server.
◆ GetOnPlayerFactionRequestInvoker_O()
| OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.GetOnPlayerFactionRequestInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a faction change from the authority.
◆ GetOnPlayerFactionRequestInvoker_S()
| OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.GetOnPlayerFactionRequestInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a faction change from the authority.
◆ GetOnPlayerFactionResponseInvoker_O()
| OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.GetOnPlayerFactionResponseInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding faction change.
◆ GetOnPlayerFactionResponseInvoker_S()
| OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.GetOnPlayerFactionResponseInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding faction change.
◆ GetPlayerController()
◆ GetPlayerId()
| int SCR_PlayerFactionAffiliationComponent.GetPlayerId |
( |
| ) |
|
◆ IsOwner()
| bool SCR_PlayerFactionAffiliationComponent.IsOwner |
( |
| ) |
|
|
protected |
◆ IsProxy()
| bool SCR_PlayerFactionAffiliationComponent.IsProxy |
( |
| ) |
|
|
protected |
◆ OnFactionChanged()
| override void SCR_PlayerFactionAffiliationComponent.OnFactionChanged |
( |
Faction | previous, |
|
|
Faction | current ) |
|
protected |
◆ OnPostInit()
| override void SCR_PlayerFactionAffiliationComponent.OnPostInit |
( |
IEntity | owner | ) |
|
|
protected |
Called after all components are initialized.
- Parameters
-
| owner | Entity this component is attached to. |
Implements FactionAffiliationComponent.
◆ RequestFaction()
| bool SCR_PlayerFactionAffiliationComponent.RequestFaction |
( |
Faction | faction | ) |
|
Sends a request to get assignedf provided faction.
- Parameters
-
- Returns
- True if request was sent, false if request was caught (on owner, still!) because it was invalid. NOTE: This is not the final result of the assignation. That result is can be listened to by hooking onto GetOnPlayerFactionResponseInvoker(), successful request will have a response of SCR_ESpawnResult.OK.
◆ RequestFactionResponse_O()
| void SCR_PlayerFactionAffiliationComponent.RequestFactionResponse_O |
( |
int | factionIndex, |
|
|
bool | response ) |
|
protected |
Owner: Response from the authority about whether faction was set successfully or not.
- Parameters
-
| [in] | factionIndex | |
| [in] | response | |
◆ Rpc_CanRequestFaction_S()
| void SCR_PlayerFactionAffiliationComponent.Rpc_CanRequestFaction_S |
( |
int | factionIndex | ) |
|
|
protected |
Ask the authority to whether provided faction can be assigned.
- Parameters
-
◆ Rpc_RequestFaction_S()
| void SCR_PlayerFactionAffiliationComponent.Rpc_RequestFaction_S |
( |
int | factionIndex | ) |
|
|
protected |
Ask the authority to assign provided faction.
- Parameters
-
◆ SendCanRequestFactionResponse_S()
| void SCR_PlayerFactionAffiliationComponent.SendCanRequestFactionResponse_S |
( |
int | factionIndex, |
|
|
bool | response ) |
|
protected |
Authority: Sends response to the owner whether faction assignation can be done or not.
- Parameters
-
| [in] | factionIndex | |
| [in] | response | Can faction be assigned? |
◆ SendRequestFactionResponse_S()
| void SCR_PlayerFactionAffiliationComponent.SendRequestFactionResponse_S |
( |
int | factionIndex, |
|
|
bool | response ) |
|
protected |
Authority: Sends response to the owner whether faction assignation was successfull or not.
- Parameters
-
| [in] | factionIndex | |
| [in] | response | Was faction assigned? |
◆ SetFaction_S()
| bool SCR_PlayerFactionAffiliationComponent.SetFaction_S |
( |
Faction | faction | ) |
|
Authority: Handles request on the authority:
- Parameters
-
- Returns
- true if request was processed successfully.
◆ m_OnCanPlayerFactionRequestInvoker_O
| ref OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.m_OnCanPlayerFactionRequestInvoker_O = new OnPlayerFactionRequestInvoker() |
|
protected |
◆ m_OnCanPlayerFactionRequestInvoker_S
| ref OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.m_OnCanPlayerFactionRequestInvoker_S = new OnPlayerFactionRequestInvoker() |
|
protected |
◆ m_OnCanPlayerFactionResponseInvoker_O
| ref OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.m_OnCanPlayerFactionResponseInvoker_O = new OnPlayerFactionResponseInvoker() |
|
protected |
◆ m_OnCanPlayerFactionResponseInvoker_S
| ref OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.m_OnCanPlayerFactionResponseInvoker_S = new OnPlayerFactionResponseInvoker() |
|
protected |
◆ m_OnPlayerFactionChangedInvoker
| ref OnPlayerFactionChangedInvoker SCR_PlayerFactionAffiliationComponent.m_OnPlayerFactionChangedInvoker = new OnPlayerFactionChangedInvoker() |
|
protected |
◆ m_OnPlayerFactionRequestInvoker_O
| ref OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.m_OnPlayerFactionRequestInvoker_O = new OnPlayerFactionRequestInvoker() |
|
protected |
◆ m_OnPlayerFactionRequestInvoker_S
| ref OnPlayerFactionRequestInvoker SCR_PlayerFactionAffiliationComponent.m_OnPlayerFactionRequestInvoker_S = new OnPlayerFactionRequestInvoker() |
|
protected |
◆ m_OnPlayerFactionResponseInvoker_O
| ref OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.m_OnPlayerFactionResponseInvoker_O = new OnPlayerFactionResponseInvoker() |
|
protected |
◆ m_OnPlayerFactionResponseInvoker_S
| ref OnPlayerFactionResponseInvoker SCR_PlayerFactionAffiliationComponent.m_OnPlayerFactionResponseInvoker_S = new OnPlayerFactionResponseInvoker() |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Respawn/Factions/SCR_PlayerFactionAffiliationComponent.c