Class OutConnection
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
SerializeEntityIDdata
ICoherenceComponentData[]mask
uint[]clientSimulationFrame
AbsoluteSimulationFrame
DestroyEntity(SerializeEntityID, AbsoluteSimulationFrame)
public void DestroyEntity(SerializeEntityID id, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
id
SerializeEntityIDclientSimulationFrame
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
DeliveryInfosimulationFrame
AbsoluteSimulationFrame
PushCommand(IEntityCommand, MessageTarget, SerializeEntityID, Logger)
public void PushCommand(IEntityCommand message, MessageTarget target, SerializeEntityID id, Logger logger)
Parameters
message
IEntityCommandtarget
MessageTargetid
SerializeEntityIDlogger
Logger
PushInput(IEntityInput, SerializeEntityID, Logger)
public void PushInput(IEntityInput message, SerializeEntityID id, Logger logger)
Parameters
message
IEntityInputid
SerializeEntityIDlogger
Logger
RemoveComponent(SerializeEntityID, uint[], AbsoluteSimulationFrame)
public void RemoveComponent(SerializeEntityID id, uint[] componentTypes, AbsoluteSimulationFrame clientSimulationFrame)
Parameters
id
SerializeEntityIDcomponentTypes
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
SerializeEntityIDdata
ICoherenceComponentData[]mask
uint[]clientSimulationFrame
AbsoluteSimulationFrame