WorkerConnector Class

Namespace: Improbable.Gdk.CoreSource

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()


CreateConnectionParameters Source
ConnectionParameters CreateConnectionParameters(string workerType, IConnectionParameterInitializer initializer = null)

Parameters

DeferredDisposeWorker Source
IEnumerator DeferredDisposeWorker()


Dispose Source
void Dispose()

Updated about a year ago


WorkerConnector Class


Suggested Edits are limited on API Reference Pages

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