diff options
author | kwolekr <kwolekr@minetest.net> | 2014-10-29 01:54:11 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-10-29 01:56:37 -0400 |
commit | 1cb6ea6346f568cd068380c5af52f7be269e3490 (patch) | |
tree | 1eab8e93b1621b5065c16c0973efecd4d5770939 /src/script/lua_api/l_mapgen.h | |
parent | 7c6da2f38468b1eaf3b6c9b5cd0ee985e6675e31 (diff) | |
download | minetest-1cb6ea6346f568cd068380c5af52f7be269e3490.tar.gz minetest-1cb6ea6346f568cd068380c5af52f7be269e3490.tar.bz2 minetest-1cb6ea6346f568cd068380c5af52f7be269e3490.zip |
Refactor decoration-related code
Split up ModApiMapgen::l_register_decoration()
Define and make use of CONTAINS() and ARRLEN() macros
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r-- | src/script/lua_api/l_mapgen.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 8ffe32893..d14471a08 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -22,6 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "lua_api/l_base.h" +class NodeResolver; +class DecoSimple; +class DecoSchematic; + class ModApiMapgen : public ModApiBase { private: // get_mapgen_object(objectname) @@ -53,6 +57,11 @@ private: // place_schematic(p, schematic, rotation, replacement) static int l_place_schematic(lua_State *L); + static bool regDecoSimple(lua_State *L, + NodeResolver *resolver, DecoSimple *deco); + static bool regDecoSchematic(lua_State *L, + NodeResolver *resolver, DecoSchematic *deco); + static struct EnumString es_BiomeTerrainType[]; static struct EnumString es_DecorationType[]; static struct EnumString es_MapgenObject[]; |