]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
Fix client profiler print interval
[minetest.git] / src / environment.h
index b6767858ad5c49100a188e501e7c7bea05cc68a5..5d2fe55515d785e83399199f49b624f2686c09fa 100644 (file)
@@ -175,6 +175,14 @@ class ServerEnvironment : public Environment
        */
        u16 addActiveObject(ServerActiveObject *object);
        
+       /*
+               Add an active object as a static object to the corresponding
+               MapBlock.
+               Caller allocates memory, ServerEnvironment frees memory.
+               Return value: true if succeeded, false if failed.
+       */
+       bool addActiveObjectAsStatic(ServerActiveObject *object);
+       
        /*
                Find out what new objects have been added to
                inside a radius around a position
@@ -210,6 +218,11 @@ class ServerEnvironment : public Environment
 
        void addActiveBlockModifier(ActiveBlockModifier *abm);
 
+       /* Other stuff */
+       
+       // Clear all objects, loading and going through every MapBlock
+       void clearAllObjects();
+
 private:
 
        /*
@@ -406,9 +419,6 @@ class ClientEnvironment : public Environment
        
        // Get event from queue. CEE_NONE is returned if queue is empty.
        ClientEnvEvent getClientEvent();
-
-       // Post effects
-       void drawPostFx(video::IVideoDriver* driver, v3f camera_pos);
        
 private:
        ClientMap *m_map;
@@ -416,6 +426,7 @@ class ClientEnvironment : public Environment
        core::map<u16, ClientActiveObject*> m_active_objects;
        Queue<ClientEnvEvent> m_client_event_queue;
        IntervalLimiter m_active_object_light_update_interval;
+       IntervalLimiter m_lava_hurt_interval;
 };
 
 #endif