MCPcopy Create free account
hub / github.com/DFHack/dfhack / forCitizens

Method forCitizens

library/modules/Units.cpp:746–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746void Units::forCitizens(std::function<void(df::unit *)> fn, bool exclude_residents, bool include_insane) {
747 for (auto unit : citizensRange(world->units.active, exclude_residents, include_insane))
748 fn(unit);
749}
750
751bool Units::getCitizens(vector<df::unit *> &citizens, bool exclude_residents, bool include_insane) {
752 for (auto unit : citizensRange(world->units.active, exclude_residents, include_insane))

Callers

nothing calls this directly

Calls 1

citizensRangeFunction · 0.85

Tested by

no test coverage detected