| 373 | } |
| 374 | |
| 375 | static int burrow_tiles_clear(lua_State *L) { |
| 376 | color_ostream *out = Lua::GetOutput(L); |
| 377 | if (!out) |
| 378 | out = &Core::getInstance().getConsole(); |
| 379 | DEBUG(status,*out).print("entering burrow_tiles_clear\n"); |
| 380 | |
| 381 | lua_pushnil(L); // first key |
| 382 | while (lua_next(L, 1)) { |
| 383 | df::burrow * burrow = get_burrow(L, -1); |
| 384 | if (burrow) |
| 385 | Burrows::clearTiles(burrow); |
| 386 | lua_pop(L, 1); // remove value, leave key |
| 387 | } |
| 388 | |
| 389 | return 0; |
| 390 | } |
| 391 | |
| 392 | static void tiles_set_add_remove(lua_State *L, bool do_set, bool enable) { |
| 393 | df::burrow *target = get_burrow(L, 1); |
nothing calls this directly
no test coverage detected