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

Function CheckCoordXYZ

library/LuaApi.cpp:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static df::coord CheckCoordXYZ(lua_State *state, int base, bool vararg = false)
159{
160 df::coord p;
161 if (vararg && lua_gettop(state) <= base)
162 Lua::CheckDFAssign(state, &p, base);
163 else
164 {
165 p = df::coord(
166 luaL_checkint(state, base),
167 luaL_checkint(state, base+1),
168 luaL_checkint(state, base+2)
169 );
170 }
171 return p;
172}
173
174template<class T>
175static bool get_int_field(lua_State *L, T *pf, int idx, const char *name, int defval)

Callers 15

gui_pauseRecenterFunction · 0.85
gui_revealInDwarfmodeMapFunction · 0.85
maps_isValidTilePosFunction · 0.85
maps_isTileVisibleFunction · 0.85
maps_getTileBlockFunction · 0.85
maps_ensureTileBlockFunction · 0.85
maps_getTileTypeFunction · 0.85
maps_getTileFlagsFunction · 0.85
maps_getTileBiomeRgnFunction · 0.85
maps_getPlantAtTileFunction · 0.85
maps_isTileAquiferFunction · 0.85
maps_isTileHeavyAquiferFunction · 0.85

Calls 2

lua_gettopFunction · 0.85
CheckDFAssignFunction · 0.85

Tested by

no test coverage detected