Table of Contents

Class OutConnection

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

Methods

ClearAllChangesForEntity(Entity)

public void ClearAllChangesForEntity(Entity id)

Parameters

id Entity

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

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

Parameters

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

DestroyEntity(Entity, AbsoluteSimulationFrame)

public void DestroyEntity(Entity id, AbsoluteSimulationFrame clientSimulationFrame)

Parameters

id Entity
clientSimulationFrame AbsoluteSimulationFrame

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

Parameters

id Entity

OnDeliveryInfo(DeliveryInfo, AbsoluteSimulationFrame)

public void OnDeliveryInfo(DeliveryInfo info, AbsoluteSimulationFrame simulationFrame)

Parameters

info DeliveryInfo
simulationFrame AbsoluteSimulationFrame

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[], AbsoluteSimulationFrame)

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

Parameters

id Entity
componentTypes uint[]
clientSimulationFrame AbsoluteSimulationFrame

Reset()

public void Reset()

Update(AbsoluteSimulationFrame)

public void Update(AbsoluteSimulationFrame clientSimulationFrame)

Parameters

clientSimulationFrame AbsoluteSimulationFrame

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

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

Parameters

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