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

Function get_role_assignment

plugins/preserve-rooms.cpp:689–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689static string get_role_assignment(color_ostream &out, df::building_civzonest * zone) {
690 if (!zone)
691 return "";
692 TRACE(control,out).print("get_role_assignment: zone_id={}\n", zone->id);
693 auto it = noble_zones.find(zone->id);
694 if (it == noble_zones.end() || it->second.empty())
695 return "";
696 return it->second[0];
697}
698
699
700static string preserve_rooms_getRoleAssignmentForZone(color_ostream &out, df::building_civzonest * zone) {

Calls 4

printMethod · 0.45
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected