| 373 | } |
| 374 | |
| 375 | DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) { |
| 376 | helper.init(); |
| 377 | if (AUTOENABLE) { |
| 378 | if (!apply_hooks(out, true)) { |
| 379 | return CR_FAILURE; |
| 380 | } |
| 381 | |
| 382 | enabled = true; |
| 383 | } |
| 384 | |
| 385 | commands.push_back(PluginCommand( |
| 386 | plugin_name, |
| 387 | "Queue manager jobs based on free space in stockpiles.", |
| 388 | stockflow_cmd)); |
| 389 | return CR_OK; |
| 390 | } |
| 391 | |
| 392 | DFhackCExport command_result plugin_shutdown(color_ostream &out) { |
| 393 | return plugin_enable(out, false); |
nothing calls this directly
no test coverage detected