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

Function command_result plugin_onupdate

plugins/preserve-rooms.cpp:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258DFhackCExport command_result plugin_onupdate(color_ostream &out) {
259 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode())
260 return CR_OK;
261 if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS)
262 do_cycle(out);
263 return CR_OK;
264}
265
266static command_result do_command(color_ostream &out, vector<string> &parameters) {
267 if (!World::isFortressMode() || !Core::getInstance().isMapLoaded()) {

Callers

nothing calls this directly

Calls 1

do_cycleFunction · 0.70

Tested by

no test coverage detected