Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public PositionReceivedEventArgs(PositionMessage message)
 {
     Message = message;
 }