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

Method getUnitsByNobleRole

library/modules/Units.cpp:732–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732bool Units::getUnitsByNobleRole(vector<df::unit *> &units, string noble) {
733 units.clear();
734 get_units_by_noble_role(units, noble);
735 return !units.empty();
736}
737
738df::unit *Units::getUnitByNobleRole(string noble) {
739 vector<df::unit *> units;

Callers

nothing calls this directly

Calls 3

get_units_by_noble_roleFunction · 0.85
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected