From 7a8a095f3319be4570eec31deffdd5fa32afbcd5 Mon Sep 17 00:00:00 2001 From: Unkie Date: Mon, 25 Apr 2016 16:40:55 +1000 Subject: [PATCH] Updated Classic BlockDB draft (markdown) --- Classic-BlockDB-draft.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classic-BlockDB-draft.md b/Classic-BlockDB-draft.md index 9a0e6c0..c592518 100644 --- a/Classic-BlockDB-draft.md +++ b/Classic-BlockDB-draft.md @@ -1,11 +1,11 @@ -The Classic BlockDB format is relatively simple, with the format consisting of a sequence of 16 byte blocks.
+The Classic BlockDB format is relatively simple, with the format just consisting of a sequence of 16 byte blocks.
The blocks are in the order: _BlockDB header_, then _BlockDB metadata_, then a variable number of _BlockDB entry_. ##### BlockDB header block ``` 4 | Format identifier "cbdb" 1 | Format version, currently '1' -1 | Years offset (unsigned). Reference point = first second of year (1970 + offset) +1 | Years offset (unsigned). Reference point = 1st second of year (1970 + offset) 2 | Width of the map 2 | Height of the map (vertical) 2 | Length of the map @@ -158,7 +158,7 @@ namespace ClassicBlockDB { // bit 0 set: old block is a physics block, not an ext tile. // bit 1 set: new block is a physics block, not an ext tile. - // TODO: should we be using uint16 bitflags for context, with 4 bits leftover for the software? + // TODO: 12 bits for context, with 4 bits leftover for the software? public const int Size = 16; }