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

Function get_bounds

plugins/burrow.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245static 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
254static df::burrow* get_burrow(lua_State *L, int idx) {
255 df::burrow *burrow = NULL;

Callers 1

box_fillFunction · 0.70

Calls 1

get_int_fieldFunction · 0.70

Tested by

no test coverage detected