| 30 | EventManager::EventHandler handler(plugin_self,jobCompletedHandler,1); |
| 31 | |
| 32 | DFhackCExport command_result plugin_init(color_ostream& out, std::vector<PluginCommand> &commands) { |
| 33 | commands.push_back(PluginCommand( |
| 34 | "work-now", |
| 35 | "Reduce the time that dwarves idle after completing a job.", |
| 36 | work_now)); |
| 37 | |
| 38 | return CR_OK; |
| 39 | } |
| 40 | |
| 41 | static void cleanup() { |
| 42 | EventManager::unregister(EventManager::EventType::JOB_COMPLETED, handler); |
nothing calls this directly
no test coverage detected