Add option to surface.get_connected_tiles(position, tiles)

Things that we aren't going to implement
Post Reply
TheFunnySide
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Jun 08, 2019 1:19 pm
Contact:

Add option to surface.get_connected_tiles(position, tiles)

Post by TheFunnySide »

surface.get_connected_tiles(position, tiles)

position :: Position: The tile position to start at.
tiles :: array of string: The tiles to search for.

new option : collision_mask (instead of tiles)
Edit: new option : radius (only consider tiles within the radius of given position)
Edit: new option : area (only consider tiles within the area )
Edit: new option : no_entities_on_tile(only consider tiles which are empty)

I think this function is mostly used to flood fill. And it would be easier and more efficent to just specifiy {"ground-tile"} instead of all possible tiles.

Post Reply

Return to “Won't implement”