| 37 | } |
| 38 | |
| 39 | void grepTileLayer(SearchParameters const& search, TMXMapPtr map, TMXTileLayerPtr tileLayer, MatchReporter callback) { |
| 40 | tileLayer->forEachTile(map.get(), |
| 41 | [&](Vec2I pos, Tile const& tile) { |
| 42 | if (auto tileName = matchTile(search, static_cast<Tiled::Tile const&>(tile))) |
| 43 | callback(*tileName, pos); |
| 44 | return false; |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | void grepObjectGroup(SearchParameters const& search, TMXObjectGroupPtr objectGroup, MatchReporter callback) { |
| 49 | for (auto object : objectGroup->objects()) { |
no test coverage detected