MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_onupdate

Function command_result plugin_onupdate

plugins/reveal.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125DFhackCExport 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
137DFhackCExport command_result plugin_shutdown(color_ostream &out) {
138 reset_state();

Callers

nothing calls this directly

Calls 2

do_reveal_adventureFunction · 0.85
SetPauseStateFunction · 0.85

Tested by

no test coverage detected