diff options
author | kwolekr <kwolekr@minetest.net> | 2015-04-12 16:40:50 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-04-13 03:10:52 -0400 |
commit | b2a89c04b22d51a9ec541c75cf530897dbbce8d9 (patch) | |
tree | d10614fa15c71fbd4110b3e2430208a332a82b40 /src/script/lua_api/l_mapgen.h | |
parent | 39fd4da7a00e59fabe9b328842033901c15eeb70 (diff) | |
download | minetest-b2a89c04b22d51a9ec541c75cf530897dbbce8d9.tar.gz minetest-b2a89c04b22d51a9ec541c75cf530897dbbce8d9.tar.bz2 minetest-b2a89c04b22d51a9ec541c75cf530897dbbce8d9.zip |
Schematics: Reorganize (de)serialization and add Lua serialization API
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r-- | src/script/lua_api/l_mapgen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 2d796ac70..a54fcd7a8 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -84,6 +84,9 @@ private: // place_schematic(p, schematic, rotation, replacement) static int l_place_schematic(lua_State *L); + // serialize_schematic(schematic, format, use_comments) + static int l_serialize_schematic(lua_State *L); + public: static void Initialize(lua_State *L, int top); @@ -92,6 +95,7 @@ public: static struct EnumString es_MapgenObject[]; static struct EnumString es_OreType[]; static struct EnumString es_Rotation[]; + static struct EnumString es_SchematicFormatType[]; }; #endif /* L_MAPGEN_H_ */ |