diff options
| author | Sgeo <[email protected]> | 2017-06-14 20:47:11 -0400 |
|---|---|---|
| committer | Sgeo <[email protected]> | 2017-06-14 20:47:11 -0400 |
| commit | e86019fd41dd0e9c0d6caed7c9dc18f659ed2e46 (patch) | |
| tree | 9ffbc4b1a94711b5ee6d18d8cd369ad401afece6 | |
| parent | Updated Persister (.world etc.) format (markdown) (diff) | |
| download | libreworlds-wiki-e86019fd41dd0e9c0d6caed7c9dc18f659ed2e46.tar.xz libreworlds-wiki-e86019fd41dd0e9c0d6caed7c9dc18f659ed2e46.zip | |
Updated Persister (.world etc.) format (markdown)
| -rw-r--r-- | Persister-(.world-etc.)-format.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md index 1ab79e8..497dbaa 100644 --- a/Persister-(.world-etc.)-format.md +++ b/Persister-(.world-etc.)-format.md @@ -10,6 +10,8 @@ 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 +* MaybeNull: 1 byte as a null indicator (0x01 for null, 0x00 for non-null), followed by an object (as described below) for non-null +* Array: * "Version for X" (not applicable to Persister version): For the first instance for a given X, this is an integer. Otherwise it is omitted and the prior value assumed. Note that X is usually, but not always, a class. # Header and footer |