MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_init

Function command_result plugin_init

plugins/spectate.cpp:296–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294static void follow_a_dwarf(color_ostream &out);
295
296DFhackCExport 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
307static void on_disable(color_ostream &out, bool skip_restore_settings = false) {
308 EventManager::unregisterAll(plugin_self);

Callers

nothing calls this directly

Calls 2

PluginCommandFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected