]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
Fix addon and configuration file paths
[minetest.git] / src / environment.h
index 3ebbee9108cb9679913dd9d0363ef5748e9e7631..fcd16e2967bebd271303940541af8894a08f991f 100644 (file)
@@ -39,6 +39,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "activeobject.h"
 
 class Server;
+class ServerEnvironment;
 class ActiveBlockModifier;
 class ServerActiveObject;
 typedef struct lua_State lua_State;
@@ -129,9 +130,7 @@ struct ABMWithState
        ActiveBlockModifier *abm;
        float timer;
 
-       ABMWithState(ActiveBlockModifier *abm_):
-               abm(abm_)
-       {}
+       ABMWithState(ActiveBlockModifier *abm_);
 };
 
 /*
@@ -357,6 +356,7 @@ class ServerEnvironment : public Environment
 #ifndef SERVER
 
 #include "clientobject.h"
+class ClientSimpleObject;
 
 /*
        The client-side environment.
@@ -425,6 +425,12 @@ class ClientEnvironment : public Environment
                }
        }
 
+       /*
+               ClientSimpleObjects
+       */
+
+       void addSimpleObject(ClientSimpleObject *simple);
+
        /*
                ActiveObjects
        */
@@ -470,6 +476,7 @@ class ClientEnvironment : public Environment
        IGameDef *m_gamedef;
        IrrlichtDevice *m_irr;
        core::map<u16, ClientActiveObject*> m_active_objects;
+       core::list<ClientSimpleObject*> m_simple_objects;
        Queue<ClientEnvEvent> m_client_event_queue;
        IntervalLimiter m_active_object_light_update_interval;
        IntervalLimiter m_lava_hurt_interval;