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

Function printStatus

plugins/nestboxes.cpp:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143static void printStatus(color_ostream &out){
144 if (!is_enabled)
145 out.print("{} is disabled\n", plugin_name);
146 else {
147 out.print("{} is enabled\n", plugin_name);
148 auto burrow = getBurrow(out);
149 if (burrow)
150 {
151 out.print("only protecting eggs inside burrow: {}\n", burrow->name);
152 }
153 else
154 {
155 out.print("protecting all fertile eggs\n");
156 }
157 }
158}
159
160static command_result do_command(color_ostream &out, std::vector<string> &parameters){
161 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers 1

do_commandFunction · 0.70

Calls 2

getBurrowFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected