1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Biomes: Add 'get heat', 'get humidity', 'get biome data' APIs

'get biome data' returns biome id, heat and humidity.
Clean up nearby lines in lua_api.txt.
This commit is contained in:
paramat
2017-09-22 12:38:55 +01:00
committed by paramat
parent 4c0d4e4105
commit d45e5da8ca
5 changed files with 302 additions and 39 deletions

View File

@@ -25,9 +25,21 @@ class ModApiMapgen : public ModApiBase
{
private:
// get_biome_id(biomename)
// returns the biome id used in biomemap
// returns the biome id as used in biomemap and returned by 'get_biome_data()'
static int l_get_biome_id(lua_State *L);
// get_heat(pos)
// returns the heat at the position
static int l_get_heat(lua_State *L);
// get_humidity(pos)
// returns the humidity at the position
static int l_get_humidity(lua_State *L);
// get_biome_data(pos)
// returns a table containing the biome id, heat and humidity at the position
static int l_get_biome_data(lua_State *L);
// get_mapgen_object(objectname)
// returns the requested object used during map generation
static int l_get_mapgen_object(lua_State *L);