| 751 | } |
| 752 | |
| 753 | void Part::placePhase(Vec2I pos, Phase phase, Set<Vec2I> const& places, DungeonGeneratorWriter* writer) const { |
| 754 | m_reader->forEachTile([&places, pos, phase, writer](Vec2I tilePos, Tile const& tile) -> bool { |
| 755 | Vec2I position = pos + tilePos; |
| 756 | if (tile.collidesWithPlaces() || !places.contains(position)) { |
| 757 | try { |
| 758 | tile.place(position, phase, writer); |
| 759 | } catch (std::exception const&) { |
| 760 | Logger::error("Error at map position {}:", tilePos); |
| 761 | throw; |
| 762 | } |
| 763 | } |
| 764 | return false; |
| 765 | }); |
| 766 | } |
| 767 | |
| 768 | bool Part::tileUsesPlaces(Vec2I pos) const { |
| 769 | bool result = false; |
nothing calls this directly
no test coverage detected