示例#1
0
 public void Show(ViewPort viewPort)
 {
     viewPort.Clear();
     viewPort.Console.ForegroundColor = ConsoleColor.Gray;
     for (int i = 0; i < width; ++i)
     {
         for (int j = 0; j < height; ++j)
         {
             if (plan[i, j] != Map.UNKNOWN)
             {
                 viewPort.Write(plan[i, j], i, j);
             }
         }
     }
     viewPort.Refresh();
     viewPort.Console.ReadKey();
 }