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

Function setBurrow

plugins/nestboxes.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123//
124
125static void setBurrow(color_ostream &out, const string &burrow_name){
126 auto burrow = Burrows::findByName(burrow_name);
127 if (burrow) {
128 config.set_int(CONFIG_BURROW, burrow->id);
129 } else {
130 config.set_int(CONFIG_BURROW, -1);
131 }
132}
133
134static df::burrow* getBurrow(color_ostream &out){
135 int id = config.get_int(CONFIG_BURROW);

Callers 1

do_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected