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

Method PushPosXYZ

library/LuaTools.cpp:191–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191int 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
207int DFHack::Lua::PushPosXY(lua_State *state, const df::coord2d &pos)
208{

Callers

nothing calls this directly

Calls 3

lua_pushnilFunction · 0.85
lua_pushintegerFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected