Exemplo n.º 1
0
        public void handleRPCMove(NetworkMessage RPCMsg)
        {
            byte[]  bytes = RPCMsg.reader.ReadBytesAndSize();
            RPCMove msg   = Game.ClientController.Deserialize <RPCMove> (bytes);

            int[] start  = msg.start;
            int[] target = msg.target;
            localRenderer.makeMove(start, target);
        }
Exemplo n.º 2
0
 public void sendRPCMove(int targetID, RPCMove move)
 {
     sendMsg(move, targetID, (short)MsgType.RPCMove);
 }