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

Method apply

library/include/modules/GuiHooks.h:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55 inline T_func *next() { return hook->next(func); }
56 void apply (bool enable)
57 {
58 if (enable)
59 hook->add(func);
60 else
61 hook->remove(func);
62 enabled = enable;
63 }
64 inline void enable() { apply(true); }
65 inline void disable() { apply(false); }
66 inline bool is_enabled() { return enabled; }

Callers 1

install_reset_pointFunction · 0.45

Calls 2

addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected