Exemple #1
0
        public IEnumerable <Vector2> GetEligibleTilesToReplace(TileMap map)
        {
            var ret = map.Tiles.Cells.Points.Where(pt => CheckCondition(map, pt)).ToArray();

            return(ret);
        }
Exemple #2
0
 public PotentialTileMatch(AutogenTile tile, TileMap map)
 {
     Tile = tile;
     PossibleTilesToReplace = tile.GetEligibleTilesToReplace(map).ToList();
 }
Exemple #3
0
 public void Apply(TileMap map, Vector2 tile)
 {
     map.Tiles.Cells.Set(tile, CellIndexChoices.RandomElement());
 }