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