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

Function command_result plugin_init

plugins/stockflow.cpp:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) {
376 helper.init();
377 if (AUTOENABLE) {
378 if (!apply_hooks(out, true)) {
379 return CR_FAILURE;
380 }
381
382 enabled = true;
383 }
384
385 commands.push_back(PluginCommand(
386 plugin_name,
387 "Queue manager jobs based on free space in stockpiles.",
388 stockflow_cmd));
389 return CR_OK;
390}
391
392DFhackCExport command_result plugin_shutdown(color_ostream &out) {
393 return plugin_enable(out, false);

Callers

nothing calls this directly

Calls 3

apply_hooksFunction · 0.85
PluginCommandFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected