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

Function command_result plugin_onupdate

plugins/autochop.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193DFhackCExport command_result plugin_onupdate(color_ostream &out) {
194 if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS) {
195 int32_t designated = do_cycle(out);
196 if (0 < designated)
197 out.print("autochop: designated {} tree(s) for chopping\n", designated);
198 }
199 return CR_OK;
200}
201
202static command_result do_command(color_ostream &out, vector<string> &parameters) {
203 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 2

do_cycleFunction · 0.70
printMethod · 0.45

Tested by

no test coverage detected