| 452 | } |
| 453 | |
| 454 | DFhackCExport command_result plugin_enable(color_ostream& out, bool enable) |
| 455 | { |
| 456 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |
| 457 | out.printerr("Cannot enable {} without a loaded fort.\n", plugin_name); |
| 458 | return CR_FAILURE; |
| 459 | } |
| 460 | |
| 461 | enabled = enable; |
| 462 | autofarmInstance->save_state(out); |
| 463 | return CR_OK; |
| 464 | } |
| 465 | |
| 466 | DFhackCExport command_result plugin_load_site_data (color_ostream &out) { |
| 467 | cycle_timestamp = 0; |
nothing calls this directly
no test coverage detected