summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2014-10-24 22:03:31 -0400
committerAnthony Zhang <azhang9@gmail.com>2014-10-24 22:03:31 -0400
commiteb88bf6adee9a1a63f129040020d2730d84fb8f1 (patch)
tree3ea644fce14fe4dcc149c5956bac689717668d96 /README.md
parent02c36c16d5a51ab83fb438daf7219768ef882c22 (diff)
parent796aa3870d5cd45696cb253024aa75e8bbc2b462 (diff)
Merge pull request #61 from ShadowNinja/cleanup-serialization
Clean up serialization
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 18 insertions, 14 deletions
diff --git a/README.md b/README.md
index 4e447be..a41271e 100644
--- a/README.md
+++ b/README.md
@@ -109,20 +109,24 @@ WorldEdit supports two different types of schematics.
The first is the WorldEdit Schematic format, with the file extension ".we", and in some older versions, ".wem". There have been several previous versions of the WorldEdit Schematic format, but WorldEdit is capable of loading any past versions, and will always support them - there is no need to worry about schematics becoming obselete.
-The current version of the WorldEdit Schematic format, internally known as version 4, is essentially an array of node data tables in Lua 5.2 table syntax. Specifically:
-
- return {
- {
- ["y"] = <y-axis coordinate>,
- ["x"] = <x-axis coordinate>,
- ["name"] = <node name>,
- ["z"] = <z-axis coordinate>,
- ["meta"] = <metadata table>,
- ["param2"] = <param2 value>,
- ["param1"] = <y-axis coordinate>,
- },
- <...>
- }
+As of version 5, WorldEdit schematics include a header. The header is seperated from the content by a colon (`:`). It contains fields seperated by commas (`,`). Currently only one field is used, which contains the version in ASCII decimal.
+
+The current version of the WorldEdit Schematic format is essentially an array of node data tables in Lua 5.1 table syntax preceded by a header.
+Specifically it looks like this:
+
+ 5:return {
+ {
+ y = <y-axis coordinate>,
+ x = <x-axis coordinate>,
+ z = <z-axis coordinate>,
+ name = <node name>,
+ param1 = <param1 value>,
+ param2 = <param2 value>,
+ meta = <metadata table>,
+ },
+ <...>
+ }
+
The ordering of the values and minor aspects of the syntax, such as trailing commas or newlines, are not guaranteed to stay the same in future versions.