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

Function command_result plugin_init

plugins/workflow.cpp:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62static void cleanup_state(color_ostream &out);
63
64DFhackCExport command_result plugin_init (color_ostream &out, std::vector <PluginCommand> &commands)
65{
66 if (!world || !plotinfo)
67 return CR_FAILURE;
68
69 if (ui_workshop_job_cursor && job_next_id) {
70 commands.push_back(
71 PluginCommand(
72 "workflow",
73 "Manage repeat jobs according to stock levels.",
74 workflow_cmd));
75 }
76
77 init_state(out);
78
79 return CR_OK;
80}
81
82DFhackCExport command_result plugin_shutdown (color_ostream &out)
83{

Callers

nothing calls this directly

Calls 2

PluginCommandFunction · 0.85
init_stateFunction · 0.70

Tested by

no test coverage detected