From 7899eb5b6739ffa24811b03ee63532484fe95aea Mon Sep 17 00:00:00 2001 From: Sgeo Date: Mon, 12 Jun 2017 22:48:06 -0400 Subject: [PATCH] Updated Persister (.world etc.) format (markdown) --- Persister-(.world-etc.)-format.md | 6 ++++++ 1 file changed, 6 insertions(+) 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.