| 195 | } |
| 196 | |
| 197 | DFhackCExport 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 | |
| 206 | static command_result do_command(color_ostream &out, vector<string> ¶meters) { |
| 207 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |
nothing calls this directly
no test coverage detected