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

Function burrow_tiles_clear

plugins/burrow.cpp:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375static 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
392static void tiles_set_add_remove(lua_State *L, bool do_set, bool enable) {
393 df::burrow *target = get_burrow(L, 1);

Callers

nothing calls this directly

Calls 4

lua_pushnilFunction · 0.85
lua_nextFunction · 0.85
get_burrowFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected