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

Method getCitizens

library/modules/Units.cpp:751–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))
753 citizens.emplace_back(unit);
754 return true;
755}
756
757df::coord Units::getPosition(df::unit *unit) {
758 CHECK_NULL_POINTER(unit);

Callers

nothing calls this directly

Calls 1

citizensRangeFunction · 0.85

Tested by

no test coverage detected