]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
removed furnace menu because it is not needed anymore
[minetest.git] / src / environment.h
index f5cce59339ab01451f8655edf85aeb652f1d19ce..bb9fb0136017a42bdb3f475b73418aa65cd7bfd3 100644 (file)
@@ -159,7 +159,7 @@ class ServerEnvironment : public Environment
        void loadMeta(const std::string &savedir);
 
        /*
-               ActiveObjects
+               External ActiveObject interface
                -------------------------------------------
        */
 
@@ -198,13 +198,31 @@ class ServerEnvironment : public Environment
        ActiveObjectMessage getActiveObjectMessage();
 
        /*
-               ActiveBlockModifiers
+               ActiveBlockModifiers (TODO)
                -------------------------------------------
        */
 
        void addActiveBlockModifier(ActiveBlockModifier *abm);
 
 private:
+
+       /*
+               Internal ActiveObject interface
+               -------------------------------------------
+       */
+
+       /*
+               Add an active object to the environment.
+
+               Called by addActiveObject.
+
+               Object may be deleted by environment immediately.
+               If id of object is 0, assigns a free id to it.
+               Returns the id of the object.
+               Returns 0 if not added and thus deleted.
+       */
+       u16 addActiveObjectRaw(ServerActiveObject *object, bool set_changed);
+       
        /*
                Remove all objects that satisfy (m_removed && m_known_by_count==0)
        */
@@ -246,6 +264,7 @@ class ServerEnvironment : public Environment
        ActiveBlockList m_active_blocks;
        IntervalLimiter m_active_blocks_management_interval;
        IntervalLimiter m_active_blocks_test_interval;
+       IntervalLimiter m_active_blocks_nodemetadata_interval;
        // Time from the beginning of the game in seconds.
        // Incremented in step().
        u32 m_game_time;