mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00: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:
parent
4c0d4e4105
commit
d45e5da8ca
5 changed files with 302 additions and 39 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue