summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSgeo <[email protected]>2017-06-14 00:16:16 -0400
committerSgeo <[email protected]>2017-06-14 00:16:16 -0400
commit14bad5eb1952cdd33fcfa79cdfd6cc0b93d65409 (patch)
tree8b92aeeafa57eda7c9c5a4325b5101b9756d37b2
parentAdded timezones (diff)
downloadlibreworlds-wiki-14bad5eb1952cdd33fcfa79cdfd6cc0b93d65409.tar.xz
libreworlds-wiki-14bad5eb1952cdd33fcfa79cdfd6cc0b93d65409.zip
Updated Persister (.world etc.) format (markdown)
-rw-r--r--Persister-(.world-etc.)-format.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md
index e345258..08cf70c 100644
--- a/Persister-(.world-etc.)-format.md
+++ b/Persister-(.world-etc.)-format.md
@@ -10,6 +10,7 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or
* Boolean: 1 byte, 0x00 for false 0x01 for true.
* Byte, Double, Long, Int, Float, Short: Self-explanatory
* Arrays, vectors, maybenulls: Explained below
+* Versions (not applicable to Persister version): Either an integer or non-existent (already interned/cached). When WorldsPlayer tries to retrieve a version, it uses a "cookie", usually but not necessarily corresponding to a class. If that cookie has been used to retrieve a version before, the next time a version corresponding to that cookie is read, it will always be the same version. That is, if the first Room was read as version 3 (hypothetically), the next Room will also be version 3, without another indication directly in the file.
# Header and footer