Ejemplo n.º 1
0
 /// <summary>
 /// Temporary helper function. This is just to aid
 /// in testing until a proper saver/loader can be
 /// written.
 /// </summary>
 public void MapFillPattern1()
 {
     for (int i = 0; i < _mapWidth; i++)
         for (int j = 0; j < _mapHeight; j++)
         {
             _data[i, j] = new Chunk();
             _data[i,j]._tile = (TileID)((i + j) % 5);
         }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Temporary helper function. This is just to aid
 /// in testing until a proper saver/loader can be
 /// written.
 /// </summary>
 public void MapFillRandom()
 {
     for( int i = 0; i < _mapWidth; i++ )
         for (int j = 0; j < _mapHeight; j++)
         {
             _data[i, j] = new Chunk();
             _data[i,j]._tile = (TileID)_maprand.Next(0, 5);
         }
 }