Arma Reforger Script API
|
SCR_SpawnRequestComponent <-> SCR_SpawnHandlerComponent. More...
Public Member Functions | |
PlayerController | GetPlayerController () |
int | GetPlayerId () |
SCR_SpawnHandlerComponent | GetHandlerComponent () |
TypeName | GetHandlerType () |
TypeName | GetDataType () |
sealed bool | CanRequestRespawn (SCR_SpawnData data) |
Sends an ask request to the authority to find out whether spawn with provided data is valid. | |
sealed bool | RequestRespawn (SCR_SpawnData data) |
Requests respawn with provided data. | |
bool | IsPreloading () |
void | StartSpawnPreload (vector position) |
void | ~SCR_SpawnRequestComponent () |
Protected Member Functions | |
SCR_RespawnComponent | GetRespawnComponent () |
SCR_SpawnLockComponent | GetLock () |
bool | IsOwner () |
bool | IsProxy () |
override void | OnPostInit (IEntity owner) |
Initialises the component by finding necessary dependencies. | |
bool | DoCanRequestRespawn (SCR_SpawnData data) |
Request is first handled on the sending side (player or authority depending on context). | |
void | ProcessCanRequest_S (SCR_SpawnData data) |
Authority call to dispatch provided data to corresponding SCR_SpawnHandlerComponent. | |
void | SendCanResponse_S (SCR_ESpawnResult response, SCR_SpawnData data) |
Authority: Sends a response from the server to the owner about current can-respawn request. | |
void | Rpc_SendCanResponse_O (SCR_ESpawnResult response) |
Owner: Processes received response about current spawn process from the authority, dispatches events. | |
bool | DoRequestRespawn (SCR_SpawnData data) |
Request is first handled on the sending side (player or authority depending on context). | |
void | ProcessRequest_S (SCR_SpawnData data) |
Authority call to dispatch provided data to corresponding SCR_SpawnHandlerComponent. | |
void | OnFinalizeBegin_S (SCR_SpawnHandlerComponent handler, SCR_SpawnData data, IEntity spawnedEntity) |
Authority callback when finalisation of spawn has began. | |
void | AwaitFinalization_S (SCR_SpawnHandlerComponent handler, SCR_SpawnData data, IEntity spawnedEntity) |
Authority callback to await finalisation. | |
bool | CanFinalize_S (SCR_SpawnHandlerComponent handler, SCR_SpawnData data, IEntity spawnedEntity) |
void | FinalizeRequest_S (SCR_SpawnHandlerComponent handler, SCR_SpawnData data, IEntity spawnedEntity) |
Authority call to finalise respawn, after ProcessRequest_S (AwaitFinalization_S respectively) has finished. | |
void | SendResponse_S (SCR_ESpawnResult response, SCR_SpawnData data) |
Authority: Sends a response from the server to the owner about current respawn request. | |
void | SendFinalizationBegin_S () |
Send a notification from the authority that the finalisation has started. | |
void | Rpc_OnFinalizationBegin_O () |
void | NotifyPreloadStarted_S () |
void | Rpc_NotifyPreloadStarted_S () |
void | NotifyPreloadFinished_S () |
void | Rpc_NotifyPreloadFinished_S () |
void | Rpc_StartPreload_O (vector position) |
void | Rpc_SendResponse_O (SCR_ESpawnResult response) |
Owner: Processes received response about current spawn process from the authority, dispatches events. | |
SCR_ChimeraAIAgent | FindAIAgent (IEntity entity) |
Tries to find AI agent for provided entity. | |
SCR_SpawnRequestComponent <-> SCR_SpawnHandlerComponent.
SCR_SpawnRequestComponent allows communication between client and the authority, SCR_SpawnHandlerComponent handles the requests on authority as desired.
The respawn request component is the client (but can be issued by authority) component of the respawn process which sends respawn requests to be process by the authority. The process is further streamlined via the usage of a unified parent manager, the SCR_RespawnComponent.
void SCR_SpawnRequestComponent.~SCR_SpawnRequestComponent | ( | ) |
|
protected |
Authority callback to await finalisation.
[in] | handler | |
[in] | data | |
[in] | spawnedEntity |
|
protected |
[in] | handler | |
[in] | data | |
[in] | spawnedEntity |
sealed bool SCR_SpawnRequestComponent.CanRequestRespawn | ( | SCR_SpawnData | data | ) |
Sends an ask request to the authority to find out whether spawn with provided data is valid.
Returned value does NOT correspond to the actual response. For reponse see available events.
|
protected |
Request is first handled on the sending side (player or authority depending on context).
This method can return false and will immediately raise a SCR_ESpawnResult.BAD_REQUEST response.
Implemented in SCR_FreeSpawnRequestComponent, SCR_PossessSpawnRequestComponent, and SCR_SpawnPointRespawnRequestComponent.
|
protected |
Request is first handled on the sending side (player or authority depending on context).
This method can return false and will immediately raise a SCR_ESpawnResult.BAD_REQUEST response.
[in] | data |
Implemented in SCR_FreeSpawnRequestComponent, SCR_PossessSpawnRequestComponent, and SCR_SpawnPointRespawnRequestComponent.
|
protected |
Authority call to finalise respawn, after ProcessRequest_S (AwaitFinalization_S respectively) has finished.
It is delayed to allow certain jobs (end of frame) to finish, before passing the ownership to the client.
[in] | handler | |
[in] | data | |
[in] | spawnedEntity |
|
protected |
Tries to find AI agent for provided entity.
[in] | entity |
TypeName SCR_SpawnRequestComponent.GetDataType | ( | ) |
Implemented in SCR_FreeSpawnRequestComponent, SCR_PossessSpawnRequestComponent, and SCR_SpawnPointRespawnRequestComponent.
SCR_SpawnHandlerComponent SCR_SpawnRequestComponent.GetHandlerComponent | ( | ) |
TypeName SCR_SpawnRequestComponent.GetHandlerType | ( | ) |
Implemented in SCR_FreeSpawnRequestComponent, SCR_PossessSpawnRequestComponent, and SCR_SpawnPointRespawnRequestComponent.
|
protected |
PlayerController SCR_SpawnRequestComponent.GetPlayerController | ( | ) |
int SCR_SpawnRequestComponent.GetPlayerId | ( | ) |
|
protected |
|
protected |
bool SCR_SpawnRequestComponent.IsPreloading | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Authority callback when finalisation of spawn has began.
[in] | handler | |
[in] | data | |
[in] | spawnedEntity |
|
protected |
Initialises the component by finding necessary dependencies.
[in] | owner |
|
protected |
Authority call to dispatch provided data to corresponding SCR_SpawnHandlerComponent.
Handles responses when handler is not found or on request success internally.
[in] | data |
|
protected |
Authority call to dispatch provided data to corresponding SCR_SpawnHandlerComponent.
Handles responses when handler is not found or on request success internally.
[in] | data |
sealed bool SCR_SpawnRequestComponent.RequestRespawn | ( | SCR_SpawnData | data | ) |
Requests respawn with provided data.
! Note that even successful request can still be denied by the authority!
[in] | data |
|
protected |
|
protected |
|
protected |
|
protected |
Owner: Processes received response about current spawn process from the authority, dispatches events.
[in] | response | The result of the respawning action. |
|
protected |
Owner: Processes received response about current spawn process from the authority, dispatches events.
[in] | response | The result of the respawning action. |
|
protected |
|
protected |
Authority: Sends a response from the server to the owner about current can-respawn request.
[in] | response | The result of the request. |
[in] | data | The data the request was instigated with. |
|
protected |
Send a notification from the authority that the finalisation has started.
|
protected |
Authority: Sends a response from the server to the owner about current respawn request.
[in] | response | The result of the respawning action. |
[in] | data | The data the request was instigated with. |
void SCR_SpawnRequestComponent.StartSpawnPreload | ( | vector | position | ) |
[in] | position |