| 243 | } |
| 244 | |
| 245 | static bool get_bounds(lua_State *L, int idx, df::coord &pos1, df::coord &pos2) { |
| 246 | return get_int_field(L, idx, "x1", &pos1.x) && |
| 247 | get_int_field(L, idx, "y1", &pos1.y) && |
| 248 | get_int_field(L, idx, "z1", &pos1.z) && |
| 249 | get_int_field(L, idx, "x2", &pos2.x) && |
| 250 | get_int_field(L, idx, "y2", &pos2.y) && |
| 251 | get_int_field(L, idx, "z2", &pos2.z); |
| 252 | } |
| 253 | |
| 254 | static df::burrow* get_burrow(lua_State *L, int idx) { |
| 255 | df::burrow *burrow = NULL; |
no test coverage detected