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

Function preserve_rooms_setFeature

plugins/preserve-rooms.cpp:619–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619static bool preserve_rooms_setFeature(color_ostream &out, bool enabled, string feature) {
620 DEBUG(control,out).print("preserve_rooms_setFeature: enabled={}, feature={}\n",
621 enabled, feature);
622 if (feature == "track-missions") {
623 config.set_bool(CONFIG_TRACK_MISSIONS, enabled);
624 if (is_enabled && enabled)
625 do_cycle(out);
626 } else if (feature == "track-roles") {
627 config.set_bool(CONFIG_TRACK_ROLES, enabled);
628 } else {
629 return false;
630 }
631
632 return true;
633}
634
635static bool preserve_rooms_getFeature(color_ostream &out, string feature) {
636 TRACE(control,out).print("preserve_rooms_getFeature: feature={}\n", feature);

Callers

nothing calls this directly

Calls 2

do_cycleFunction · 0.70
printMethod · 0.45

Tested by

no test coverage detected