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

Function command_result plugin_onstatechange

plugins/burrow.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) {
88 if (event == DFHack::SC_WORLD_UNLOADED)
89 reset();
90 return CR_OK;
91}
92
93static command_result do_command(color_ostream &out, vector<string> &parameters) {
94 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

resetFunction · 0.70

Tested by

no test coverage detected