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

Function command_result plugin_onstatechange

plugins/dig.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) {
155 if (event == DFHack::SC_WORLD_UNLOADED) {
156 is_painting_warm = false;
157 is_painting_damp = false;
158 do_enable(false);
159 }
160 return CR_OK;
161}
162
163static void fill_dig_jobs(std::unordered_map<df::coord, df::job *> &dig_jobs) {
164 df::job_list_link *link = world->jobs.list.next;

Callers

nothing calls this directly

Calls 1

do_enableFunction · 0.70

Tested by

no test coverage detected