MCPcopy Create free account
hub / github.com/DFHack/dfhack / revtoggle

Function revtoggle

plugins/reveal.cpp:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346command_result revtoggle(color_ostream &out, vector<string> & params) {
347 if (revealed)
348 return unreveal(out, params);
349 else
350 return reveal(out, params);
351}
352
353// Unhides map tiles according to visibility, starting from the given
354// coordinates. This algorithm only processes adjacent hidden tiles, so it must

Callers

nothing calls this directly

Calls 2

unrevealFunction · 0.85
revealFunction · 0.85

Tested by

no test coverage detected