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

Function command_result plugin_onupdate

plugins/buildingplan/buildingplan.cpp:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346DFhackCExport command_result plugin_onupdate(color_ostream &out) {
347 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode())
348 return CR_OK;
349
350 if (cycle_requested || world->frame_counter - cycle_timestamp >= CYCLE_TICKS)
351 do_cycle(out);
352 return CR_OK;
353}
354
355static command_result do_command(color_ostream &out, vector<string> &parameters) {
356 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

do_cycleFunction · 0.70

Tested by

no test coverage detected