Class OutConnection
public class OutConnection
- Inheritance
-
OutConnection
Methods
ClearAllChangesForEntity(Entity)
public void ClearAllChangesForEntity(Entity id)
Parameters
idEntity
CreateEntity(Entity, ICoherenceComponentData[], uint[], AbsoluteSimulationFrame)
public void CreateEntity(Entity id, ICoherenceComponentData[] data, uint[] mask, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
idEntitydataICoherenceComponentData[]maskuint[]clientSimulationFrameAbsoluteSimulationFrame
DestroyEntity(Entity, AbsoluteSimulationFrame)
public void DestroyEntity(Entity id, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
idEntityclientSimulationFrameAbsoluteSimulationFrame
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
idEntity
OnDeliveryInfo(DeliveryInfo, AbsoluteSimulationFrame)
public void OnDeliveryInfo(DeliveryInfo info, AbsoluteSimulationFrame simulationFrame)
Parameters
infoDeliveryInfosimulationFrameAbsoluteSimulationFrame
PushCommand(IEntityCommand, MessageTarget, Entity, Logger)
public void PushCommand(IEntityCommand message, MessageTarget target, Entity id, Logger logger)
Parameters
messageIEntityCommandtargetMessageTargetidEntityloggerLogger
PushInput(IEntityInput, Logger)
public void PushInput(IEntityInput message, Logger logger)
Parameters
messageIEntityInputloggerLogger
RemoveComponent(Entity, uint[], AbsoluteSimulationFrame)
public void RemoveComponent(Entity id, uint[] componentTypes, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
idEntitycomponentTypesuint[]clientSimulationFrameAbsoluteSimulationFrame
Reset()
public void Reset()
Update(AbsoluteSimulationFrame)
public void Update(AbsoluteSimulationFrame clientSimulationFrame)
Parameters
clientSimulationFrameAbsoluteSimulationFrame
UpdateEntity(Entity, ICoherenceComponentData[], uint[], AbsoluteSimulationFrame)
public void UpdateEntity(Entity id, ICoherenceComponentData[] data, uint[] mask, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
idEntitydataICoherenceComponentData[]maskuint[]clientSimulationFrameAbsoluteSimulationFrame