| 294 | static void follow_a_dwarf(color_ostream &out); |
| 295 | |
| 296 | DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) { |
| 297 | DEBUG(control,out).print("initializing {}\n", plugin_name); |
| 298 | |
| 299 | commands.push_back(PluginCommand( |
| 300 | plugin_name, |
| 301 | "Automated spectator mode.", |
| 302 | do_command)); |
| 303 | |
| 304 | return CR_OK; |
| 305 | } |
| 306 | |
| 307 | static void on_disable(color_ostream &out, bool skip_restore_settings = false) { |
| 308 | EventManager::unregisterAll(plugin_self); |
nothing calls this directly
no test coverage detected