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

Function command_result plugin_onupdate

plugins/logistics.cpp:197–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197DFhackCExport command_result plugin_onupdate(color_ostream &out) {
198 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode())
199 return CR_OK;
200 if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS) {
201 logistics_cycle(out, true);
202 }
203 return CR_OK;
204}
205
206static command_result do_command(color_ostream &out, vector<string> &parameters) {
207 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

logistics_cycleFunction · 0.85

Tested by

no test coverage detected