]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
Fix client profiler print interval
[minetest.git] / src / environment.h
index d9248d2adbb7d131b9edffe335be7911c60d5446..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;