| 189 | } |
| 190 | |
| 191 | int DFHack::Lua::PushPosXYZ(lua_State *state, const df::coord &pos) |
| 192 | { |
| 193 | if (!pos.isValid()) |
| 194 | { |
| 195 | lua_pushnil(state); |
| 196 | return 1; |
| 197 | } |
| 198 | else |
| 199 | { |
| 200 | lua_pushinteger(state, pos.x); |
| 201 | lua_pushinteger(state, pos.y); |
| 202 | lua_pushinteger(state, pos.z); |
| 203 | return 3; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | int DFHack::Lua::PushPosXY(lua_State *state, const df::coord2d &pos) |
| 208 | { |
nothing calls this directly
no test coverage detected