Table of Contents

Class OutConnection

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

Methods

ClearAllChangesForEntity(SerializeEntityID)

public void ClearAllChangesForEntity(SerializeEntityID id)

Parameters

id SerializeEntityID

CreateEntity(SerializeEntityID, ICoherenceComponentData[], uint[], AbsoluteSimulationFrame)

public void CreateEntity(SerializeEntityID id, ICoherenceComponentData[] data, uint[] mask, AbsoluteSimulationFrame clientSimulationFrame)

Parameters

id SerializeEntityID
data ICoherenceComponentData[]
mask uint[]
clientSimulationFrame AbsoluteSimulationFrame

DestroyEntity(SerializeEntityID, AbsoluteSimulationFrame)

public void DestroyEntity(SerializeEntityID id, AbsoluteSimulationFrame clientSimulationFrame)

Parameters

id SerializeEntityID
clientSimulationFrame AbsoluteSimulationFrame

HoldCommandsForEntity(SerializeEntityID)

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 HoldCommandsForEntity(SerializeEntityID id)

Parameters

id SerializeEntityID

OnDeliveryInfo(DeliveryInfo, AbsoluteSimulationFrame)

public void OnDeliveryInfo(DeliveryInfo info, AbsoluteSimulationFrame simulationFrame)

Parameters

info DeliveryInfo
simulationFrame AbsoluteSimulationFrame

PushCommand(IEntityCommand, MessageTarget, SerializeEntityID, Logger)

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

Parameters

message IEntityCommand
target MessageTarget
id SerializeEntityID
logger Logger

PushInput(IEntityInput, SerializeEntityID, Logger)

public void PushInput(IEntityInput message, SerializeEntityID id, Logger logger)

Parameters

message IEntityInput
id SerializeEntityID
logger Logger

RemoveComponent(SerializeEntityID, uint[], AbsoluteSimulationFrame)

public void RemoveComponent(SerializeEntityID id, uint[] componentTypes, AbsoluteSimulationFrame clientSimulationFrame)

Parameters

id SerializeEntityID
componentTypes uint[]
clientSimulationFrame AbsoluteSimulationFrame

Reset()

public void Reset()

Update(AbsoluteSimulationFrame)

public void Update(AbsoluteSimulationFrame clientSimulationFrame)

Parameters

clientSimulationFrame AbsoluteSimulationFrame

UpdateEntity(SerializeEntityID, ICoherenceComponentData[], uint[], AbsoluteSimulationFrame)

public void UpdateEntity(SerializeEntityID id, ICoherenceComponentData[] data, uint[] mask, AbsoluteSimulationFrame clientSimulationFrame)

Parameters

id SerializeEntityID
data ICoherenceComponentData[]
mask uint[]
clientSimulationFrame AbsoluteSimulationFrame