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

Function get_units_by_noble_role

library/modules/Units.cpp:725–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723
724
725static void get_units_by_noble_role(vector<df::unit *> &units, string noble, size_t limit = 0) {
726 if (!plotinfo)
727 return;
728 add_entity_nobles(units, noble, limit, df::historical_entity::find(plotinfo->civ_id));
729 add_entity_nobles(units, noble, limit, df::historical_entity::find(plotinfo->group_id));
730}
731
732bool Units::getUnitsByNobleRole(vector<df::unit *> &units, string noble) {
733 units.clear();

Callers 2

getUnitsByNobleRoleMethod · 0.85
getUnitByNobleRoleMethod · 0.85

Calls 2

add_entity_noblesFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected