]> git.lizzy.rs Git - minetest.git/blobdiff - src/mg_decoration.h
Make limiting of the reflow liquids queue size optional
[minetest.git] / src / mg_decoration.h
index f360e3b76945cf84d69280296897f7d84d906d7f..dffb524f39f95ea43b7caff7e96d5f256083f428 100644 (file)
@@ -81,6 +81,7 @@ class Decoration : public GenElement {
 
        virtual size_t generate(Mapgen *mg, PseudoRandom *pr, s16 max_y, v3s16 p) = 0;
        virtual int getHeight() = 0;
+       virtual void dropResolverEntries(NodeResolver *resolver) {}
 };
 
 class DecoSimple : public Decoration {
@@ -96,6 +97,7 @@ class DecoSimple : public Decoration {
        bool canPlaceDecoration(ManualMapVoxelManipulator *vm, v3s16 p);
        virtual size_t generate(Mapgen *mg, PseudoRandom *pr, s16 max_y, v3s16 p);
        virtual int getHeight();
+       virtual void dropResolverEntries(NodeResolver *resolver);
 };
 
 class DecoSchematic : public Decoration {
@@ -123,7 +125,7 @@ class DecorationManager : public GenElementManager {
        static const char *ELEMENT_TITLE;
        static const size_t ELEMENT_LIMIT = 0x10000;
 
-       DecorationManager(IGameDef *gamedef) {}
+       DecorationManager(IGameDef *gamedef);
        ~DecorationManager() {}
 
        Decoration *create(int type)
@@ -140,6 +142,8 @@ class DecorationManager : public GenElementManager {
                }
        }
 
+       void clear();
+
        size_t placeAllDecos(Mapgen *mg, u32 seed, v3s16 nmin, v3s16 nmax);
 };