MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_onstatechange

Function command_result plugin_onstatechange

plugins/autolabor/autolabor.cpp:723–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
724{
725 switch (event) {
726 case SC_MAP_UNLOADED:
727 cleanup_state();
728 break;
729 default:
730 break;
731 }
732
733 return CR_OK;
734}
735
736DFhackCExport command_result plugin_onupdate ( color_ostream &out )
737{

Callers

nothing calls this directly

Calls 1

cleanup_stateFunction · 0.70

Tested by

no test coverage detected