PlayerLifecycleHelper Class

Namespace: Improbable.Gdk.PlayerLifecycleSource


Static Methods

AddPlayerLifecycleComponents Source
void AddPlayerLifecycleComponents(EntityTemplate template, string clientWorkerId, string serverAccess)

Adds the SpatialOS components used by the player lifecycle module to an entity template.

Parameters
  • EntityTemplate template : The entity template to add player lifecycle components to.
  • string clientWorkerId : The ID of the client-worker.
  • string serverAccess : The server-worker write access attribute.

IsOwningWorker Source
bool IsOwningWorker(EntityId entityId, World workerWorld)

Parameters
  • EntityId entityId :
  • World workerWorld :

AddClientSystems Source
void AddClientSystems(World world, bool autoRequestPlayerCreation = true)

Adds all the systems a client-worker requires for the player lifecycle module.

Parameters
  • World world : A world that belongs to a client-worker.
  • bool autoRequestPlayerCreation : An option to toggle automatic player creation.

AddServerSystems Source
void AddServerSystems(World world)

Adds all the systems a server-worker requires for the player lifecycle module.

Parameters
  • World world : A world that belongs to a server-worker.

Updated about a year ago


PlayerLifecycleHelper Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.