| 236 | } |
| 237 | |
| 238 | DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) { |
| 239 | if (event == DFHack::SC_WORLD_UNLOADED) { |
| 240 | if (is_enabled) { |
| 241 | DEBUG(control,out).print("world unloaded; disabling {}\n", |
| 242 | plugin_name); |
| 243 | do_disable(); |
| 244 | } |
| 245 | } |
| 246 | return CR_OK; |
| 247 | } |
| 248 | |
| 249 | DFhackCExport command_result plugin_onupdate(color_ostream &out) { |
| 250 | if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS) |
nothing calls this directly
no test coverage detected