| 187 | DFHACK_EXPORT bool getUnitsInBox(std::vector<df::unit *> &units, const cuboid &box, |
| 188 | std::function<bool(df::unit *)> filter = [](df::unit *u) { return true; }); |
| 189 | DFHACK_EXPORT inline bool getUnitsInBox(std::vector<df::unit *> &units, int16_t x1, int16_t y1, int16_t z1, |
| 190 | int16_t x2, int16_t y2, int16_t z2, std::function<bool(df::unit *)> filter = [](df::unit *u) { return true; }) |
| 191 | { return getUnitsInBox(units, cuboid(x1, y1, z1, x2, y2, z2), filter); } |
| 192 | DFHACK_EXPORT inline bool getUnitsInBox(std::vector<df::unit *> &units, df::coord pos1, df::coord pos2, |
| 193 | std::function<bool(df::unit *)> filter = [](df::unit *u) { return true; }) |
| 194 | { return getUnitsInBox(units, cuboid(pos1, pos2), filter); } |
no test coverage detected