| 163 | DFHACK_PLUGIN_IS_ENABLED(enabled); |
| 164 | |
| 165 | static void enable_hooks(bool enable) |
| 166 | { |
| 167 | enabled = enable; |
| 168 | |
| 169 | INTERPOSE_HOOK(trap_hook, getName).apply(enable); |
| 170 | INTERPOSE_HOOK(trap_hook, updateAction).apply(enable); |
| 171 | INTERPOSE_HOOK(trap_hook, drawBuilding).apply(enable); |
| 172 | } |
| 173 | |
| 174 | static bool makePowerMeter(df::pressure_plate_info *info, int min_power, int max_power, bool invert) |
| 175 | { |
no test coverage detected