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

Function command_result plugin_init

plugins/autoclothing.cpp:207–214  ·  view source on GitHub ↗

Mandatory init function. If you have some global state, create it here.

Source from the content-addressed store, hash-verified

205
206// Mandatory init function. If you have some global state, create it here.
207DFhackCExport command_result plugin_init(color_ostream &out, vector<PluginCommand> &commands)
208{ // Fill the command list with your commands.
209 commands.push_back(PluginCommand(
210 "autoclothing",
211 "Automatically manage clothing work orders",
212 autoclothing));
213 return CR_OK;
214}
215
216// This is called right before the plugin library is removed from memory.
217DFhackCExport command_result plugin_shutdown(color_ostream &out) {

Callers

nothing calls this directly

Calls 1

PluginCommandFunction · 0.85

Tested by

no test coverage detected