Mandatory init function. If you have some global state, create it here.
| 205 | |
| 206 | // Mandatory init function. If you have some global state, create it here. |
| 207 | DFhackCExport command_result plugin_init(color_ostream &out, vector<PluginCommand> &commands) |
| 208 | { // Fill the command list with your commands. |
| 209 | commands.push_back(PluginCommand( |
| 210 | "autoclothing", |
| 211 | "Automatically manage clothing work orders", |
| 212 | autoclothing)); |
| 213 | return CR_OK; |
| 214 | } |
| 215 | |
| 216 | // This is called right before the plugin library is removed from memory. |
| 217 | DFhackCExport command_result plugin_shutdown(color_ostream &out) { |
nothing calls this directly
no test coverage detected