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

Function cleanup_state

plugins/autolabor/autolabor.cpp:292–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290};
291
292static void cleanup_state()
293{
294 enable_autolabor = false;
295 labor_infos.clear();
296
297 // reinstate DF's work detail system
298 game->external_flag.bits.automatic_professions_disabled = false;
299}
300
301static void reset_labor(df::unit_labor labor)
302{

Callers 5

enable_pluginFunction · 0.70
disable_pluginFunction · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected