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