From 1cb6ea6346f568cd068380c5af52f7be269e3490 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 29 Oct 2014 01:54:11 -0400 Subject: Refactor decoration-related code Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros --- src/script/lua_api/l_mapgen.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/script/lua_api/l_mapgen.h') 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[]; -- cgit v1.2.3