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

Function command_result plugin_onupdate

plugins/timestream.cpp:249–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249DFhackCExport command_result plugin_onupdate(color_ostream &out) {
250 if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS)
251 do_cycle(out);
252 return CR_OK;
253}
254
255static command_result do_command(color_ostream &out, vector<string> &parameters) {
256 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

do_cycleFunction · 0.70

Tested by

no test coverage detected