From 9209d81d2022146ff53aea42dc66739b97b9138b Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Wed, 20 Mar 2013 17:12:48 -0400 Subject: //metasave and //metaload are now superceded by //save and //load's new functionality. worldedit.deserialize now supports every version of the WorldEdit format that has ever existed, and the new worldedit.valueversion uses file characteristics to determine which type of file format a given file uses. The new WorldEdit file format is the same as the one used by MineTest for serializing data, and is capable of storing arbitrary data, as well as leaving fields for future improvements. In other words, this is the last forward-compatibility breaking change that will be made to the file format. --- worldedit/table serialize (WIP).lua | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 worldedit/table serialize (WIP).lua (limited to 'worldedit/table serialize (WIP).lua') diff --git a/worldedit/table serialize (WIP).lua b/worldedit/table serialize (WIP).lua deleted file mode 100644 index 6947c0b..0000000 --- a/worldedit/table serialize (WIP).lua +++ /dev/null @@ -1,15 +0,0 @@ -serialize_meta = function(pos) - local insert, format, concat = table.insert, string.format, table.concat - --wip: do recursive serialize - - local meta = env:get_meta(pos):to_table() - local fields = {} - for key, value in pairs(meta.fields) do - insert(fields, format("%q", key) .. format("%q", value)) - end - return concat(meta.inventory, ",") .. concat(fields) -end - -deserialize_meta = function(value) - --wip -end \ No newline at end of file -- cgit v1.2.3