diff options
author | paramat <paramat@users.noreply.github.com> | 2017-09-22 12:38:55 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-01-16 08:47:07 +0000 |
commit | d45e5da8ca808e552123bcd94e76b0b435a6ea79 (patch) | |
tree | 356623d2625c8e2aab94de35f7b1790dfe998d71 /src/mapgen/mg_biome.h | |
parent | 4c0d4e4105d2f2e63b9a43bb83fecf92288f63b3 (diff) | |
download | minetest-d45e5da8ca808e552123bcd94e76b0b435a6ea79.tar.gz minetest-d45e5da8ca808e552123bcd94e76b0b435a6ea79.tar.bz2 minetest-d45e5da8ca808e552123bcd94e76b0b435a6ea79.zip |
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.
Diffstat (limited to 'src/mapgen/mg_biome.h')
-rw-r--r-- | src/mapgen/mg_biome.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mapgen/mg_biome.h b/src/mapgen/mg_biome.h index ac606e935..a2bfaf5b9 100644 --- a/src/mapgen/mg_biome.h +++ b/src/mapgen/mg_biome.h @@ -225,6 +225,13 @@ public: virtual void clear(); + // For BiomeGen type 'BiomeGenOriginal' + float getHeatAtPosOriginal(v3s16 pos, NoiseParams &np_heat, + NoiseParams &np_heat_blend, u64 seed); + float getHumidityAtPosOriginal(v3s16 pos, NoiseParams &np_humidity, + NoiseParams &np_humidity_blend, u64 seed); + Biome *getBiomeFromNoiseOriginal(float heat, float humidity, s16 y); + private: Server *m_server; |