Sites

Menu

PlayerLifecycleConfig Class

Namespace: Improbable.Gdk.PlayerLifecycle
GDK package: PlayerLifecycle
Source


Static Fields

PlayerHeartbeatIntervalSeconds Source
float PlayerHeartbeatIntervalSeconds

The time in seconds between player heartbeat requests.

Notes:
MaxNumFailedPlayerHeartbeats Source
int MaxNumFailedPlayerHeartbeats

The maximum number of failed heartbeats before a player is disconnected.

Notes:
MaxPlayerCreationRetries Source
int MaxPlayerCreationRetries

The maximum number of retries for player creation requests.

Notes:
  • The number of times a player creation request is retried after the first attempt. Setting this to 0 disables retrying player creation after calling .
MaxPlayerCreatorQueryRetries Source
int MaxPlayerCreatorQueryRetries

The maximum number of retries for finding player creator entities, before any player creation occurs.

Notes:
  • All player creation requests must be sent to a player creator entity, which are initially queried for when the SendCreatePlayerRequestSystem starts. This field indicates the maximum number of retries for the
AutoRequestPlayerCreation Source
bool AutoRequestPlayerCreation

This indicates whether a player should be created automatically upon a worker connecting to SpatialOS.

Notes:
  • If , a Player entity is automatically created upon a client-worker connecting to SpatialOS. However, to be able to send arbitrary serialized data in the player creation request, or to provide a callback to be invoked upon receiving a player creation response, this field must be set to .
CreatePlayerEntityTemplate Source
GetPlayerEntityTemplateDelegate CreatePlayerEntityTemplate

The delegate responsible for returning a player EntityTemplate when creating a player.

Notes:
  • This must be set before initiating any player creation because it is called by the HandleCreatePlayerRequestSystem. The system uses this delegate to request a new player entity based on the returned EntityTemplate.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums