| 123 | } |
| 124 | |
| 125 | DFhackCExport command_result plugin_onupdate(color_ostream &out) { |
| 126 | if (World::isAdventureMode()) { |
| 127 | if (cycle_timestamp < world->frame_counter) { |
| 128 | cycle_timestamp = world->frame_counter; |
| 129 | do_reveal_adventure(out, revealed == SAFE_REVEALED, true); |
| 130 | } |
| 131 | } else { |
| 132 | World::SetPauseState(true); |
| 133 | } |
| 134 | return CR_OK; |
| 135 | } |
| 136 | |
| 137 | DFhackCExport command_result plugin_shutdown(color_ostream &out) { |
| 138 | reset_state(); |
nothing calls this directly
no test coverage detected