| 384 | } |
| 385 | |
| 386 | DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) |
| 387 | { |
| 388 | switch (event) { |
| 389 | case SC_WORLD_UNLOADED: |
| 390 | enable_hooks(false); |
| 391 | reactions.clear(); |
| 392 | products.clear(); |
| 393 | break; |
| 394 | default: |
| 395 | break; |
| 396 | } |
| 397 | |
| 398 | return CR_OK; |
| 399 | } |
| 400 | |
| 401 | DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands) |
| 402 | { |
nothing calls this directly
no test coverage detected