]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/biome.h
Check minetest.hud_change() parameters on conversion (Fix #1714)
[dragonfireclient.git] / src / biome.h
index 17703db5a13c476167256be58ae3a9b4adc97765..554a61f4e12b189bb91b38c0a37cbbb583c64ad9 100644 (file)
@@ -44,16 +44,16 @@ class Biome {
        u8 id;
        std::string name;
        u32 flags;
-       
-       std::string top_nodename;
-       std::string filler_nodename;
 
        content_t c_top;
-       s16 top_depth;
-
        content_t c_filler;
-       s16 filler_height;
-       
+       content_t c_water;
+       content_t c_dust;
+       content_t c_dust_water;
+
+       s16 depth_top;
+       s16 depth_filler;
+
        s16 height_min;
        s16 height_max;
        float heat_point;
@@ -75,15 +75,18 @@ class BiomeDefManager {
        NoiseParams *np_heat;
        NoiseParams *np_humidity;
 
-       BiomeDefManager();
+       BiomeDefManager(NodeResolver *resolver);
        ~BiomeDefManager();
-       
+
        Biome *createBiome(BiomeTerrainType btt);
        void  calcBiomes(BiomeNoiseInput *input, u8 *biomeid_map);
        Biome *getBiome(float heat, float humidity, s16 y);
 
-       void addBiome(Biome *b);
-       void resolveNodeNames(INodeDefManager *ndef);
+       bool addBiome(Biome *b);
+       u8 getBiomeIdByName(const char *name);
+
+       s16 calcBlockHeat(v3s16 p, u64 seed, float timeofday, float totaltime);
+       s16 calcBlockHumidity(v3s16 p, u64 seed, float timeofday, float totaltime);
 };
 
 #endif