mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Expose mapgen parameters on scripting init
Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()
This commit is contained in:
parent
ff3cfb746e
commit
5e2753c712
9 changed files with 97 additions and 86 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue