/** * Send the map layout request message through the socket to the server * @param Message the message to send */ private void RequestMapLayout(String Message) { MapLayout request = new MapLayout(); request.mapInfo = Message; MemoryStream outStream = request.WriteData(Salt); try { clientSocket.Send(outStream.GetBuffer()); } catch { } }
/** * Creates an sends the map information message type for the dungeon drawer * @param player the player to get the message */ static void SendDungeonInfo(Player player) { MapLayout ML = new MapLayout(); ML.mapInfo = Dungeon.GetDungeonString(); MemoryStream outStream = ML.WriteData(player.Salt); try { player.Socket.Send(outStream.ToArray()); } catch { Console.Write("problem sending"); RemoveClientByPlayer(player); } }