diff options
author | kwolekr <kwolekr@minetest.net> | 2015-03-31 23:27:19 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-03-31 23:27:58 -0400 |
commit | 337e79c656a12bcf0dac4b25d5f0e021188e383a (patch) | |
tree | a8c15908fd5c2fe6e96cbe0324b664e201c58989 /src/script/lua_api/l_mapgen.h | |
parent | d1d5618bb829127d8e138f354bf5a4f23852df59 (diff) | |
download | minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.gz minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.bz2 minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.zip |
ObjDefManager, Mapgen SAPI: Huge refactoring
- General code cleanup
- Unified object creation and loading
- Specifying objects in APIs is now orthogonal (i.e. anything can take an ID,
name string, or the raw table definition (and automatically registers if present
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r-- | src/script/lua_api/l_mapgen.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 2ad436e77..2d796ac70 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -84,19 +84,14 @@ private: // place_schematic(p, schematic, rotation, replacement) static int l_place_schematic(lua_State *L); - static bool regDecoSimple(lua_State *L, - NodeResolveInfo *nri, DecoSimple *deco); - static bool regDecoSchematic(lua_State *L, - SchematicManager *schemmgr, DecoSchematic *deco); +public: + static void Initialize(lua_State *L, int top); static struct EnumString es_BiomeTerrainType[]; static struct EnumString es_DecorationType[]; static struct EnumString es_MapgenObject[]; static struct EnumString es_OreType[]; static struct EnumString es_Rotation[]; - -public: - static void Initialize(lua_State *L, int top); }; #endif /* L_MAPGEN_H_ */ |