Sites

Menu

PlayerLifecycleHelper Class

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


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.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums