public void SendPositionMessage(KeyValuePair<SimpleServerChildTcpSocket, ChildSocketState> childSocket, PositionMessage msg) { string description = string.Format("<{0} message: {1}, StartTick={2}, TrackerIndex={3}, MoveIndex={4}>", msg.Position.GetType(), msg.Position, msg.StartTick, msg.CameraIndex, msg.ControllerIndex); // Serialize it to a binary array byte[] binaryObject = SerializationHelper.Serialize(msg); SendSerializedMessage(childSocket, binaryObject, description); }
public PositionReceivedEventArgs(PositionMessage message) { Message = message; }