Esempio n. 1
0
 /// <summary>
 /// Send the map to specific player
 /// </summary>
 public static void SendMap(string player)
 {
     // Send one row at a time
     for (int y = 0; y < gameState.GetMapSizeY(); y++)
     {
         string sent = "0, " + y + ", " + (gameState.GetMapSizeX() - 1) + ", " + y + ", ";
         for (int x = 0; x < gameState.GetMapSizeX(); x++)
         {
             sent += gameState.map[x, y] + ", ";
         }
         sent = sent.Substring(0, sent.Length - 2);
         Update(102, sent, player);
     }
 }