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

Method FOR_ENUM_ITEMS

plugins/autolabor/labormanager.cpp:1097–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095 dwarf->unmanaged_labors_assigned = 0;
1096
1097 FOR_ENUM_ITEMS(unit_labor, l)
1098 {
1099 if (l == df::unit_labor::NONE)
1100 continue;
1101 if (dwarf->dwarf->status.labors[l])
1102 if (state == IDLE)
1103 labor_infos[l].idle_dwarfs++;
1104 if (labor_infos[l].is_unmanaged())
1105 dwarf->unmanaged_labors_assigned++;
1106 }
1107
1108
1109 if (print_debug)

Callers

nothing calls this directly

Calls 3

is_unmanagedMethod · 0.80
c_strMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected