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); }
public void sendRPCMove(int targetID, RPCMove move) { sendMsg(move, targetID, (short)MsgType.RPCMove); }