From 1c660830856f4dfb9bf1d357909de15538d94121 Mon Sep 17 00:00:00 2001 From: Sgeo Date: Wed, 14 Jun 2017 21:47:02 -0400 Subject: [PATCH] Updated Persister (.world etc.) format (markdown) --- Persister-(.world-etc.)-format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md index 9960f28..6d6fff6 100644 --- a/Persister-(.world-etc.)-format.md +++ b/Persister-(.world-etc.)-format.md @@ -13,7 +13,7 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or * MaybeNull: 1 byte as a null indicator (0x01 for null, 0x00 for non-null), followed by an object (as described below) for non-null * Class: A Class ID, then if the Class ID has not been encountered before in this file, a String for the class name. If the Class ID has been encountered before, the class name is omitted and the prior name assumed. * 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. Note that for Persister version 1, "versions" are always 0 and never read from the file. +* "Version for X" (not applicable to Persister version): For the first instance for a given X within this file, this is an integer. Otherwise it is omitted and the prior value assumed. Note that X is usually, but not always, a class. Note that for Persister version 1, "versions" are always 0 and never read from the file. # Header and footer @@ -25,7 +25,7 @@ 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. +If the Object ID has been seen before within this file, 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