| 85 | } |
| 86 | |
| 87 | DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) { |
| 88 | if (event == DFHack::SC_WORLD_UNLOADED) |
| 89 | reset(); |
| 90 | return CR_OK; |
| 91 | } |
| 92 | |
| 93 | static command_result do_command(color_ostream &out, vector<string> ¶meters) { |
| 94 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |