예제 #1
0
        public void AddRandomTile(int cont, MapScript where)
        {
            Random random = new Random();

            for (int ii = 0; ii < cont; ii++)
            {
                int index = random.Next(5, InWhere.Tiles.Count);
                where.TileToMap[NullTileLocs[ii].TileY, NullTileLocs[ii].TileX]  = where.Tiles[index];
                where.NowMapChar[NullTileLocs[ii].TileY, NullTileLocs[ii].TileX] = where.Tiles[index].TileChar;
            }
        }
예제 #2
0
 public void GetAndShuffleNullTile(MapScript where)
 {
     NullTileLocs.Clear();
     NullTileLocs.AddRange(where.MapNullTileLocs.ToArray());
     ShuffleHelper.ShuffleList(NullTileLocs);
 }