summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSCompact.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-20 16:15:39 +0100
committermadmaxoft <github@xoft.cz>2013-12-20 16:15:39 +0100
commit812375fab1517c70f56360719c10c2c61c03180d (patch)
tree74cea7b0529e8104d181236947f1e5fadb42c9e9 /src/WorldStorage/WSSCompact.h
parentProperly fixed warnings in cFastRandom. (diff)
downloadcuberite-812375fab1517c70f56360719c10c2c61c03180d.tar
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.gz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.bz2
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.lz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.xz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.zst
cuberite-812375fab1517c70f56360719c10c2c61c03180d.zip
Diffstat (limited to 'src/WorldStorage/WSSCompact.h')
-rw-r--r--src/WorldStorage/WSSCompact.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSCompact.h b/src/WorldStorage/WSSCompact.h
index a75c41ccb..3223a986e 100644
--- a/src/WorldStorage/WSSCompact.h
+++ b/src/WorldStorage/WSSCompact.h
@@ -58,6 +58,14 @@ public:
protected:
+ enum
+ {
+ // Offsets to individual components in the joined blockdata array
+ MetaOffset = cChunkDef::NumBlocks,
+ LightOffset = MetaOffset + cChunkDef::NumBlocks / 2,
+ SkyLightOffset = LightOffset + cChunkDef::NumBlocks / 2,
+ } ;
+
struct sChunkHeader;
typedef std::vector<sChunkHeader *> sChunkHeaders;