1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Gennotify: Add 'minetest.get_decoration_id' API

Returns the decoration ID for the provided decoration name string.
For use with gennotify, to know the decoration IDs for use in
'minetest.set_gen_notify'.
This commit is contained in:
paramat 2018-03-02 21:27:59 +00:00 committed by paramat
parent 07622bf9b4
commit 48493a979b
3 changed files with 35 additions and 1 deletions

View file

@ -76,6 +76,10 @@ private:
// get_gen_notify()
static int l_get_gen_notify(lua_State *L);
// get_decoration_id(decoration_name)
// returns the decoration ID as used in gennotify
static int l_get_decoration_id(lua_State *L);
// register_biome({lots of stuff})
static int l_register_biome(lua_State *L);