public void Serialize(Stream outStream, object message) { var msg = SimulationTimeMessageConverter.ToProtoBuf((SimulationTimeMessage)message); _serialize.Serialize(outStream, msg); msg.ReleaseReference(); }
public void Serialize(Stream outStream, object message) { var syncEvent = (IVehicleSyncEvent)message; VehicleEventMessage msg = VehicleEventMessage.Allocate(); VehicleEventMessageConverter.ToProtoBuf(msg, syncEvent); _serialize.Serialize(outStream, msg); msg.ReleaseReference(); }
public void Serialize(Stream outStream, object message) { var syncEvent = (TriggerObjectSyncEvent)message; var msg = TriggerObjectEventMessage.Allocate(); TriggerObjectEventMessageConverter.ToProtoBuf(msg, syncEvent); _serialize.Serialize(outStream, msg); msg.ReleaseReference(); }
public void Serialize(Stream outStream, object message) { ReusableList <IVehicleCmd> list = (ReusableList <IVehicleCmd>)message; VehicleCmdMessage msg = VehicleCmdMessage.Allocate(); VehicleCmdMessageConverter.ToProtoBuf(msg, list); _serialize.Serialize(outStream, msg); msg.ReleaseReference(); }