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

Function command_result plugin_init

plugins/work-now.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30EventManager::EventHandler handler(plugin_self,jobCompletedHandler,1);
31
32DFhackCExport 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
41static void cleanup() {
42 EventManager::unregister(EventManager::EventType::JOB_COMPLETED, handler);

Callers

nothing calls this directly

Calls 1

PluginCommandFunction · 0.85

Tested by

no test coverage detected