From 2e292b67a0a02b045969034c06aaf92b42a83a81 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 27 Jun 2013 17:06:52 -0400 Subject: Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API --- src/script/cpp_api/s_env.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/cpp_api/s_env.h') diff --git a/src/script/cpp_api/s_env.h b/src/script/cpp_api/s_env.h index c5b739eb4..51cf15036 100644 --- a/src/script/cpp_api/s_env.h +++ b/src/script/cpp_api/s_env.h @@ -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,8 @@ public: 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); void initializeEnvironment(ServerEnvironment *env); }; -- cgit v1.2.3