LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git] / src / mg_biome.h
index 04567267f81e3a97aa924d7cf47ab8279b6f4f3e..870c1196113acc64eafd8149e338e891d89cadf9 100644 (file)
@@ -33,7 +33,7 @@ enum BiomeType
        BIOME_TYPE_FLAT
 };
 
-class Biome : public GenElement {
+class Biome : public GenElement, public NodeResolver {
 public:
        u32 flags;
 
@@ -51,6 +51,8 @@ public:
        s16 height_max;
        float heat_point;
        float humidity_point;
+
+       virtual void resolveNodeNames(NodeResolveInfo *nri);
 };
 
 class BiomeManager : public GenElementManager {
@@ -71,9 +73,6 @@ public:
        void calcBiomes(s16 sx, s16 sy, float *heat_map, float *humidity_map,
                s16 *height_map, u8 *biomeid_map);
        Biome *getBiome(float heat, float humidity, s16 y);
-
-private:
-       NodeResolver *m_resolver;
 };
 
 #endif