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

Function maps_getTileType

library/LuaApi.cpp:2691–2700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2689}
2690
2691static int maps_getTileType(lua_State *L)
2692{
2693 auto pos = CheckCoordXYZ(L, 1, true);
2694 auto ptype = Maps::getTileType(pos);
2695 if (ptype)
2696 lua_pushinteger(L, *ptype);
2697 else
2698 lua_pushnil(L);
2699 return 1;
2700}
2701
2702static int maps_getTileFlags(lua_State *L)
2703{

Callers

nothing calls this directly

Calls 4

CheckCoordXYZFunction · 0.85
getTileTypeFunction · 0.85
lua_pushintegerFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected