summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSgeo <[email protected]>2017-06-14 21:46:08 -0400
committerSgeo <[email protected]>2017-06-14 21:46:08 -0400
commit28b7b5ba9df6a0bd1f79d01b355e9e1cb7dc5304 (patch)
tree202ec9e1c6c28f4d96d91d344ea840fde9134dac
parentUpdated Persister (.world etc.) format (markdown) (diff)
downloadlibreworlds-wiki-28b7b5ba9df6a0bd1f79d01b355e9e1cb7dc5304.tar.xz
libreworlds-wiki-28b7b5ba9df6a0bd1f79d01b355e9e1cb7dc5304.zip
Updated Persister (.world etc.) format (markdown)
-rw-r--r--Persister-(.world-etc.)-format.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md
index 9553509..9960f28 100644
--- a/Persister-(.world-etc.)-format.md
+++ b/Persister-(.world-etc.)-format.md
@@ -25,6 +25,8 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or
Assuming empty class and object table, an object consists of an object ID (integer), a class (a class ID (integer) then class name (String)), and then data as determined by the specific class.
+If the Object ID has been seen before, reuse the associated object, instead of proceeding to read class and data. In this way, the same object can be contained by multiple other objects, and the Persister format does NOT form a tree.
+
## Example from GroundZero
| "PERSISTER Worlds, Inc." | Persister version | Object ID | Class ID | Class name |