summaryrefslogtreecommitdiff
path: root/Persister-(.world-etc.)-format.md
diff options
context:
space:
mode:
authorSgeo <[email protected]>2017-06-12 22:48:06 -0400
committerSgeo <[email protected]>2017-06-12 22:48:06 -0400
commit7899eb5b6739ffa24811b03ee63532484fe95aea (patch)
tree0d451d6649e751cb46e327dad49d9e1eb0535b7a /Persister-(.world-etc.)-format.md
parentUpdated Persister (.world etc.) format (markdown) (diff)
downloadlibreworlds-wiki-7899eb5b6739ffa24811b03ee63532484fe95aea.tar.xz
libreworlds-wiki-7899eb5b6739ffa24811b03ee63532484fe95aea.zip
Updated Persister (.world etc.) format (markdown)
Diffstat (limited to 'Persister-(.world-etc.)-format.md')
-rw-r--r--Persister-(.world-etc.)-format.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md
index a36284a..083ee9c 100644
--- a/Persister-(.world-etc.)-format.md
+++ b/Persister-(.world-etc.)-format.md
@@ -11,6 +11,12 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or
* Byte, Double, Long, Int, Float, Short: Self-explanatory
* Arrays, vectors, maybenulls: Explained below
+# Header and footer
+
+* Persister files begin with the String "PERSISTER Worlds, Inc." (remember the 3 bytes at beginning), followed by an integer representing persister format version (7 seems to be latest), followed by an object.
+
+* Persister files end with the String "END PERSISTER"
+
# Objects
Assuming empty class and object table, an object consists of an object ID (integer), a class ID (integer), class name (String), and then data as determined by the specific class.