|
|
@ -1923,6 +1923,13 @@ static int maps_getTileBiomeRgn(lua_State *L)
|
|
|
|
return Lua::PushPosXY(L, Maps::getTileBiomeRgn(pos));
|
|
|
|
return Lua::PushPosXY(L, Maps::getTileBiomeRgn(pos));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int maps_getPlantAtCoords(lua_State *L)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
auto pos = CheckCoordXYZ(L, 1, true);
|
|
|
|
|
|
|
|
Lua::PushDFObject(L, Maps::getPlantAtCoords(pos));
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static const luaL_Reg dfhack_maps_funcs[] = {
|
|
|
|
static const luaL_Reg dfhack_maps_funcs[] = {
|
|
|
|
{ "isValidTilePos", maps_isValidTilePos },
|
|
|
|
{ "isValidTilePos", maps_isValidTilePos },
|
|
|
|
{ "isTileVisible", maps_isTileVisible },
|
|
|
|
{ "isTileVisible", maps_isTileVisible },
|
|
|
@ -1932,6 +1939,7 @@ static const luaL_Reg dfhack_maps_funcs[] = {
|
|
|
|
{ "getTileFlags", maps_getTileFlags },
|
|
|
|
{ "getTileFlags", maps_getTileFlags },
|
|
|
|
{ "getRegionBiome", maps_getRegionBiome },
|
|
|
|
{ "getRegionBiome", maps_getRegionBiome },
|
|
|
|
{ "getTileBiomeRgn", maps_getTileBiomeRgn },
|
|
|
|
{ "getTileBiomeRgn", maps_getTileBiomeRgn },
|
|
|
|
|
|
|
|
{ "getPlantAtCoords", maps_getPlantAtCoords },
|
|
|
|
{ NULL, NULL }
|
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|