| 62 | static void cleanup_state(color_ostream &out); |
| 63 | |
| 64 | DFhackCExport command_result plugin_init (color_ostream &out, std::vector <PluginCommand> &commands) |
| 65 | { |
| 66 | if (!world || !plotinfo) |
| 67 | return CR_FAILURE; |
| 68 | |
| 69 | if (ui_workshop_job_cursor && job_next_id) { |
| 70 | commands.push_back( |
| 71 | PluginCommand( |
| 72 | "workflow", |
| 73 | "Manage repeat jobs according to stock levels.", |
| 74 | workflow_cmd)); |
| 75 | } |
| 76 | |
| 77 | init_state(out); |
| 78 | |
| 79 | return CR_OK; |
| 80 | } |
| 81 | |
| 82 | DFhackCExport command_result plugin_shutdown (color_ostream &out) |
| 83 | { |
nothing calls this directly
no test coverage detected