PlayerLifecycleConfig Class

Namespace: Improbable.Gdk.PlayerLifecycle
GDK package: PlayerLifecycle

Static Fields

PlayerHeartbeatIntervalSeconds Source
float PlayerHeartbeatIntervalSeconds

The time in seconds between player heartbeat requests.

MaxNumFailedPlayerHeartbeats Source
int MaxNumFailedPlayerHeartbeats

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

MaxPlayerCreationRetries Source
int MaxPlayerCreationRetries

The maximum number of retries for player creation requests.

  • 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.

  • 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.

  • 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.

  • 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