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

Function command_result plugin_onstatechange

plugins/reveal.cpp:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event) {
143 if (event == DFHack::SC_WORLD_UNLOADED)
144 reset_state();
145 return CR_OK;
146}
147
148static void cache_tiles(const df::coord_path & tiles) {
149 size_t num_tiles = tiles.size();

Callers

nothing calls this directly

Calls 1

reset_stateFunction · 0.85

Tested by

no test coverage detected