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

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