| 123 | // |
| 124 | |
| 125 | static 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 | |
| 134 | static df::burrow* getBurrow(color_ostream &out){ |
| 135 | int id = config.get_int(CONFIG_BURROW); |