| 252 | } |
| 253 | |
| 254 | static df::burrow* get_burrow(lua_State *L, int idx) { |
| 255 | df::burrow *burrow = NULL; |
| 256 | if (lua_isuserdata(L, idx)) |
| 257 | burrow = Lua::GetDFObject<df::burrow>(L, idx); |
| 258 | else if (lua_isstring(L, idx)) |
| 259 | burrow = Burrows::findByName(luaL_checkstring(L, idx), true); |
| 260 | else if (lua_isinteger(L, idx)) |
| 261 | burrow = df::burrow::find(luaL_checkinteger(L, idx)); |
| 262 | return burrow; |
| 263 | } |
| 264 | |
| 265 | static void copyTiles(df::burrow *target, df::burrow *source, bool enable) { |
| 266 | CHECK_NULL_POINTER(target); |
no test coverage detected