MockConnectionHandler Class

Namespace: Improbable.Gdk.CoreSource

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 :

RemoveEntity Source
void RemoveEntity(long entityId)

Parameters
  • long entityId :

RemoveEntityAndComponents Source
void RemoveEntityAndComponents(long entityId, EntityTemplate template)

Parameters

RemoveComponent Source
void RemoveComponent(long entityId, uint componentId)

Parameters
  • long entityId :
  • uint componentId :

AddComponent<T> Source
void AddComponent<T>(long entityId, uint componentId, T component)

Parameters
  • long entityId :
  • uint componentId :
  • T component :

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 :

GetOutboundCommandRequests<TRequest> Source
IEnumerable<CommandRequestId> GetOutboundCommandRequests<TRequest>()


GenerateResponses<TRequest, TResponse> Source
void GenerateResponses<TRequest, TResponse>(Func<CommandRequestId, TRequest, TResponse> creator)

Parameters

GenerateResponse<TRequest, TResponse> Source
void GenerateResponse<TRequest, TResponse>(CommandRequestId id, Func<CommandRequestId, TRequest, TResponse> creator)

Parameters

AddCommandRequest<TRequest> Source
void AddCommandRequest<TRequest>(TRequest receivedRequest)

Parameters
  • TRequest receivedRequest :

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.

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

Updated about a year ago


MockConnectionHandler Class


Suggested Edits are limited on API Reference Pages

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