LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git] / src / map.h
index 4df9a556294c05b1aeb879b0fed924402c1cb1ff..57edd77088293ad5c7b49c76834704230144baf1 100644 (file)
--- a/src/map.h
+++ b/src/map.h
@@ -41,7 +41,7 @@ class ServerMapSector;
 class MapBlock;
 class NodeMetadata;
 class IGameDef;
-class IRollbackReportSink;
+class IRollbackManager;
 class EmergeManager;
 class ServerEnvironment;
 struct BlockMakeData;
@@ -366,6 +366,12 @@ protected:
 
        // Queued transforming water nodes
        UniqueQueue<v3s16> m_transforming_liquid;
+
+private:
+       f32 m_transforming_liquid_loop_count_multiplier;
+       u32 m_unprocessed_count;
+       u32 m_inc_trending_up_start_time; // milliseconds
+       bool m_queue_size_timer_started;
 };
 
 /*
@@ -544,12 +550,14 @@ public:
        void setMap(Map *map)
        {m_map = map;}
 
+       void initializeBlank(v3s16 pmin, v3s16 pmax);
+
        void initialEmerge(v3s16 blockpos_min, v3s16 blockpos_max,
-                       bool load_if_inexistent = true);
+               bool load_if_inexistent = true);
 
        // This is much faster with big chunks of generated data
        void blitBackAll(std::map<v3s16, MapBlock*> * modified_blocks,
-                       bool overwrite_generated = true);
+               bool overwrite_generated = true);
 
        bool m_is_dirty;