aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-29 12:58:55 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-29 12:59:59 -0500
commit5e2753c712e8f65fa50f4889fc1422393ba21413 (patch)
tree04aab9306f77497e712ad13ae3445d878280881d /src/script/lua_api/l_mapgen.h
parentff3cfb746e203ed02160de09b1912b543c5a25f0 (diff)
downloadminetest-5e2753c712e8f65fa50f4889fc1422393ba21413.tar.gz
minetest-5e2753c712e8f65fa50f4889fc1422393ba21413.tar.bz2
minetest-5e2753c712e8f65fa50f4889fc1422393ba21413.zip
Expose mapgen parameters on scripting init
Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r--src/script/lua_api/l_mapgen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h
index 247043a01..e98838470 100644
--- a/src/script/lua_api/l_mapgen.h
+++ b/src/script/lua_api/l_mapgen.h
@@ -33,6 +33,10 @@ private:
// returns the requested object used during map generation
static int l_get_mapgen_object(lua_State *L);
+ // get_mapgen_params()
+ // returns the currently active map generation parameter set
+ static int l_get_mapgen_params(lua_State *L);
+
// set_mapgen_params(params)
// set mapgen parameters
static int l_set_mapgen_params(lua_State *L);