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

Function command_result plugin_init

plugins/eventful.cpp:508–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
509{
510 eventHandlers = compileEventHandlerArray();
511 if (Core::getInstance().isWorldLoaded())
512 plugin_onstatechange(out, SC_WORLD_LOADED);
513 enable_hooks(true);
514 return CR_OK;
515}
516
517DFhackCExport command_result plugin_shutdown ( color_ostream &out )
518{

Callers

nothing calls this directly

Calls 2

compileEventHandlerArrayFunction · 0.85
enable_hooksFunction · 0.70

Tested by

no test coverage detected