Sites

Menu

MockConnectionHandler Class

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

Inheritance

Improbable.Gdk.Core.IConnectionHandler


Methods

CreateEntity Source
void CreateEntity(long entityId, EntityTemplate template)

Parameters
ChangeAuthority Source
void ChangeAuthority(long entityId, uint componentId, Authority newAuthority)

Parameters
  • long entityId :
  • uint componentId :
  • Authority newAuthority :
UpdateComponent<T> Source
void UpdateComponent<T>(long entityId, uint componentId, T update)

Parameters
  • long entityId :
  • uint componentId :
  • T update :
AddEvent<T> Source
void AddEvent<T>(long entityId, uint componentId, T ev)

Parameters
  • long entityId :
  • uint componentId :
  • T ev :
UpdateComponentAndAddEvents<TUpdate, TEvent> Source
void UpdateComponentAndAddEvents<TUpdate, TEvent>(long entityId, uint componentId, TUpdate update, params TEvent [] events)

Parameters
  • long entityId :
  • uint componentId :
  • TUpdate update :
  • params TEvent [] events :
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)

Adds a set of MessagesToSend to be sent.

Parameters

Notes:
  • The messages may not be sent immediately. This is up to the implementer.
IsConnected Source
bool IsConnected()

Gets a value indicating whether the underlying connection is connected.

Returns:
True if the underlying connection is connected, false otherwise.
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