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 /doc | |
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 'doc')
-rw-r--r-- | doc/lua_api.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0aa3691d8..25f9d53ca 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2170,6 +2170,15 @@ These functions return the leftover itemstack. * `force_placement` is a boolean indicating whether nodes other than `air` and `ignore` are replaced by the schematic +* `minetest.serialize_schematic(schematic, format, use_comments)` + * Return the serialized schematic specified by schematic (see: Schematic specifier) + * in the `format` of either "mts" or "lua". + * "mts" - a string containing the binary MTS data used in the MTS file format + * "lua" - a string containing Lua code representing the schematic in table format + * If `use_comments` is true, the Lua code generated will have (X, Z) position comments + * for every X row generated in the schematic data for easier reading. This parameter + * is ignored if `format` is not "lua". + ### Misc. * `minetest.get_connected_players()`: returns list of `ObjectRefs` * `minetest.hash_node_position({x=,y=,z=})`: returns an 48-bit integer |