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

Function command_result plugin_onupdate

plugins/suspendmanager.cpp:865–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865DFhackCExport command_result plugin_onupdate(color_ostream &out) {
866 if (cycle_needed || world->frame_counter - cycle_timestamp >= CYCLE_TICKS)
867 do_cycle(out);
868 return CR_OK;
869}
870
871static command_result do_command(color_ostream &out, vector<string> &parameters) {
872 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

do_cycleFunction · 0.70

Tested by

no test coverage detected