MCPcopy Create free account
hub / github.com/DFHack/dfhack / enable_plugin

Function enable_plugin

plugins/autolabor/labormanager.cpp:551–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549};
550
551static void enable_plugin(color_ostream &out)
552{
553 if (!config.isValid())
554 {
555 config = World::AddPersistentData("labormanager/2.0/config");
556 config.ival(0) = 0;
557 }
558
559 setOptionEnabled(CF_ENABLED, true);
560 enable_labormanager = true;
561 out << "Enabling the plugin." << endl;
562
563 cleanup_state();
564 init_state();
565}
566
567DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands)
568{

Callers 1

Calls 5

ivalMethod · 0.80
setOptionEnabledFunction · 0.70
cleanup_stateFunction · 0.70
init_stateFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected