Sites

Menu

WorkerConnector Class

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

Connect workers via Monobehaviours.

Inheritance

MonoBehaviour IDisposable


Fields

MaxConnectionAttempts Source
int MaxConnectionAttempts

The number of connection attempts before giving up.
Worker Source
WorkerInWorld Worker

Represents a SpatialOS worker.

Notes:
  • Only safe to access after the connection has succeeded.


Properties

OnWorkerCreationFinished Source
Action<Worker> OnWorkerCreationFinished { }

An event that triggers when the worker has been fully created.


Static Methods

CreateNewWorkerId Source
string CreateNewWorkerId(string workerType)

Parameters
  • string workerType :


Methods

OnApplicationQuit Source
void OnApplicationQuit()

OnDestroy Source
void OnDestroy()

Connect Source
async Task Connect(IConnectionHandlerBuilder builder, ILogDispatcher logger)

Asynchronously connects a worker to the SpatialOS runtime.

Parameters
HandleWorkerConnectionEstablished Source
void HandleWorkerConnectionEstablished()

HandleWorkerConnectionFailure Source
void HandleWorkerConnectionFailure(string errorMessage)

Parameters
  • string errorMessage :
CreateConnectionParameters Source
ConnectionParameters CreateConnectionParameters(string workerType, IConnectionParameterInitializer initializer = null)

Parameters
DeferredDisposeWorker Source
IEnumerator DeferredDisposeWorker()

Dispose Source
void Dispose()

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums