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

Function get_bounds

plugins/dig.cpp:2111–2118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2109}
2110
2111static bool get_bounds(lua_State *L, int idx, df::coord &pos1, df::coord &pos2) {
2112 return get_int_field(L, idx, "x1", &pos1.x) &&
2113 get_int_field(L, idx, "y1", &pos1.y) &&
2114 get_int_field(L, idx, "z1", &pos1.z) &&
2115 get_int_field(L, idx, "x2", &pos2.x) &&
2116 get_int_field(L, idx, "y2", &pos2.y) &&
2117 get_int_field(L, idx, "z2", &pos2.z);
2118}
2119
2120static int registerWarmDampBox(lua_State *L) {
2121 TRACE(log).print("entering registerWarmDampBox\n");

Callers 1

registerWarmDampBoxFunction · 0.70

Calls 1

get_int_fieldFunction · 0.70

Tested by

no test coverage detected