]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_env.h
Add meshnode drawtype.
[minetest.git] / src / script / cpp_api / s_env.h
index c5b739eb4ec9b869be66bc4c943486c6e890ad97..33bd81ab3a0e5b950cb9b77e41e0fb77537f24db 100644 (file)
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "irr_v3d.h"
 
 class ServerEnvironment;
+struct MapgenParams;
 
 class ScriptApiEnv
                : virtual public ScriptApiBase
@@ -33,6 +34,11 @@ class ScriptApiEnv
        void environment_Step(float dtime);
        // After generating a piece of map
        void environment_OnGenerated(v3s16 minp, v3s16 maxp,u32 blockseed);
+       // After initializing mapgens
+       void environment_OnMapgenInit(MapgenParams *mgparams);
+
+       //called on player event
+       void player_event(ServerActiveObject* player, std::string type);
 
        void initializeEnvironment(ServerEnvironment *env);
 };