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

Function revforget

plugins/reveal.cpp:524–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524command_result revforget(color_ostream &out, vector<string> & params) {
525 for (auto & param : params) {
526 if (param == "help" || param == "?")
527 return CR_WRONG_USAGE;
528 }
529
530 if (!revealed) {
531 out.printerr("There's nothing to forget!\n");
532 return CR_FAILURE;
533 }
534
535 reset_state();
536 out.print("Reveal data forgotten!\n");
537 return CR_OK;
538}
539
540DFHACK_PLUGIN_LUA_FUNCTIONS {
541 DFHACK_LUA_FUNCTION(unhideFlood),

Callers

nothing calls this directly

Calls 2

reset_stateFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected