From b2a89c04b22d51a9ec541c75cf530897dbbce8d9 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 12 Apr 2015 16:40:50 -0400 Subject: Schematics: Reorganize (de)serialization and add Lua serialization API --- src/script/lua_api/l_mapgen.h | 4 ++++ 1 file changed, 4 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 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_ */ -- cgit v1.2.3