SpatialOSConnectionHandler Class

Namespace: Improbable.Gdk.CoreSource

Inheritance

Improbable.Gdk.Core.IConnectionHandler


Constructors

SpatialOSConnectionHandler Source
SpatialOSConnectionHandler(Connection connection)

Parameters
  • Connection connection :


Methods

IsConnected Source
bool IsConnected()

Gets a value indicating whether the underlying connection is connected.

Returns:
True if the underlying connection is connected, false otherwise.

GetWorkerId Source
string GetWorkerId()

Gets the worker ID for this worker.

Returns:
The worker ID.

GetWorkerAttributes Source
List<string> GetWorkerAttributes()

Gets the worker attributes for this worker.

Returns:
The list of worker attributes.

GetMessagesReceived Source
void GetMessagesReceived(ref ViewDiff viewDiff)

Populates the ViewDiff object using the messages received since the last time this was called.

Parameters

GetMessagesToSendContainer Source
MessagesToSend GetMessagesToSendContainer()

Gets the current messages to send container.

Returns:
The messages to send container.

PushMessagesToSend Source
void PushMessagesToSend(MessagesToSend messages, NetFrameStats frameStats)

Adds a set of MessagesToSend to be sent.

Parameters

Notes:
  • The messages may not be sent immediately. This is up to the implementer.

Dispose Source
void Dispose()

Updated about a year ago


SpatialOSConnectionHandler Class


Suggested Edits are limited on API Reference Pages

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