| 334 | static bool cycle_requested = false; |
| 335 | |
| 336 | static void do_cycle(color_ostream &out) { |
| 337 | // mark that we have recently run |
| 338 | cycle_timestamp = world->frame_counter; |
| 339 | cycle_requested = false; |
| 340 | |
| 341 | bool unsuspend_on_finalize = !is_suspendmanager_enabled(out); |
| 342 | buildingplan_cycle(out, tasks, planned_buildings, unsuspend_on_finalize); |
| 343 | Lua::CallLuaModuleFunction(out, "plugins.buildingplan", "signal_reset"); |
| 344 | } |
| 345 | |
| 346 | DFhackCExport command_result plugin_onupdate(color_ostream &out) { |
| 347 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) |
no test coverage detected