Table of Contents

Class OutConnection

Namespace
Coherence.Core
Assembly
Coherence.Core.dll
public class OutConnection
Inheritance
OutConnection

Methods

CanSendUpdates(Entity)

public bool CanSendUpdates(Entity id)

Parameters

id Entity

Returns

bool

ClearAllChangesForEntity(Entity)

public void ClearAllChangesForEntity(Entity id)

Parameters

id Entity

CreateEntity(Entity, ICoherenceComponentData[])

public void CreateEntity(Entity id, ICoherenceComponentData[] data)

Parameters

id Entity
data ICoherenceComponentData[]

DestroyEntity(Entity)

public void DestroyEntity(Entity id)

Parameters

id Entity

HoldChangesForEntity(Entity)

When changing state authority, we hold on to the command and cancel all other updates until all existing updates are sent. This prevents losing the complete state of the entity at the time of transfer.

public void HoldChangesForEntity(Entity id)

Parameters

id Entity

IsEntityInAuthTransfer(Entity)

public bool IsEntityInAuthTransfer(Entity id)

Parameters

id Entity

Returns

bool

OnDeliveryInfo(DeliveryInfo)

public void OnDeliveryInfo(DeliveryInfo info)

Parameters

info DeliveryInfo

PushCommand(IEntityCommand, MessageTarget, Entity, Logger)

public void PushCommand(IEntityCommand message, MessageTarget target, Entity id, Logger logger)

Parameters

message IEntityCommand
target MessageTarget
id Entity
logger Logger

PushInput(IEntityInput, Logger)

public void PushInput(IEntityInput message, Logger logger)

Parameters

message IEntityInput
logger Logger

RemoveComponent(Entity, uint[])

public void RemoveComponent(Entity id, uint[] componentTypes)

Parameters

id Entity
componentTypes uint[]

Reset()

public void Reset()

Update(AbsoluteSimulationFrame)

public void Update(AbsoluteSimulationFrame clientSimulationFrame)

Parameters

clientSimulationFrame AbsoluteSimulationFrame

UpdateEntity(Entity, ICoherenceComponentData[])

public void UpdateEntity(Entity id, ICoherenceComponentData[] data)

Parameters

id Entity
data ICoherenceComponentData[]