| 393 | } |
| 394 | |
| 395 | DFhackCExport command_result plugin_onupdate(color_ostream &out) { |
| 396 | announcement_settings.on_update(out); |
| 397 | |
| 398 | if (plotinfo->follow_unit < 0 || plotinfo->follow_item > -1 || is_squads_open()) { |
| 399 | DEBUG(cycle,out).print("auto-disengage triggered\n"); |
| 400 | is_enabled = false; |
| 401 | plotinfo->follow_unit = -1; |
| 402 | on_disable(out); |
| 403 | return CR_OK; |
| 404 | } |
| 405 | |
| 406 | if (Core::getInstance().getUnpausedMs() >= next_cycle_unpaused_ms) { |
| 407 | recent_units.trim(); |
| 408 | follow_a_dwarf(out); |
| 409 | } |
| 410 | return CR_OK; |
| 411 | } |
| 412 | |
| 413 | static command_result do_command(color_ostream &out, vector<string> ¶meters) { |
| 414 | bool show_help = false; |
nothing calls this directly
no test coverage detected