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

Function setOptionEnabled

plugins/autolabor/autolabor.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92static void setOptionEnabled(ConfigFlags flag, bool on)
93{
94 if (!config.isValid())
95 return;
96
97 if (on)
98 config.ival(0) |= flag;
99 else
100 config.ival(0) &= ~flag;
101}
102
103
104static void generate_labor_to_skill_map();

Callers 2

enable_pluginFunction · 0.70
disable_pluginFunction · 0.70

Calls 2

ivalMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected