| 373 | } |
| 374 | |
| 375 | DFhackCExport command_result plugin_load_world_data (color_ostream &out) { |
| 376 | if (find_reactions(out)) { |
| 377 | out.print("Detected spatter add reactions - enabling plugin.\n"); |
| 378 | enable_hooks(true); |
| 379 | } |
| 380 | else |
| 381 | enable_hooks(false); |
| 382 | |
| 383 | return CR_OK; |
| 384 | } |
| 385 | |
| 386 | DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) |
| 387 | { |
nothing calls this directly
no test coverage detected