예제 #1
0
        public level.Tile GenerateTile(Random rnd)
        {
            level.Tile tile = new level.Tile();

            int picked = rnd.Next(Foregrounds.Length);

            tile.Foreground = Foregrounds[picked];
            tile.Background = Backgrounds[picked];
            tile.AssetName  = this.AssetName;

            tile.Char = Chars[picked][rnd.Next(Chars[picked].Length)];

            return(tile);
        }
예제 #2
0
 public level.Tile GenerateTile(Random rnd)
 {
     level.Tile result = localBiome.GenerateTile(rnd);
     return(result);
 }