summaryrefslogtreecommitdiffstats
path: root/src/ChunkBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChunkBuffer.h')
-rw-r--r--src/ChunkBuffer.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/ChunkBuffer.h b/src/ChunkBuffer.h
index bd178beaa..266df2332 100644
--- a/src/ChunkBuffer.h
+++ b/src/ChunkBuffer.h
@@ -275,68 +275,5 @@ private:
-/** A simple implementation of the cChunkDataCallback interface that collects all block data into a buffer
-*/
-class cChunkBufferCollector :
- public cChunkDataCallback
-{
-public:
-
- cChunkBuffer m_BlockData;
-
-protected:
-
- virtual void ChunkBuffer(const cChunkBuffer & a_BlockData) override
- {
- m_BlockData = a_BlockData.Copy();
- }
-};
-
-
-/** A simple implementation of the cChunkDataCallback interface that collects all block data into a single buffer
-*/
-class cChunkDataCollector :
-public cChunkDataCallback
-{
-public:
-
- // Must be unsigned char instead of BLOCKTYPE or NIBBLETYPE, because it houses both.
- unsigned char m_BlockData[cChunkDef::BlockDataSize];
-
-protected:
-
- virtual void ChunkBuffer(const cChunkBuffer & a_ChunkBuffer) override
- {
- a_ChunkBuffer.CopyBlocks(m_BlockData);
- a_ChunkBuffer.CopyMeta(m_BlockData + cChunkDef::NumBlocks);
- a_ChunkBuffer.CopyLight(m_BlockData + 3 * cChunkDef::NumBlocks / 2);
- a_ChunkBuffer.CopySkyLight(m_BlockData + 2 * cChunkDef::NumBlocks);
- }
-};
-
-/** A simple implementation of the cChunkDataCallback interface that collects all block data into a separate buffers
-*/
-class cChunkDataSeparateCollector :
-public cChunkDataCallback
-{
-public:
-
- cChunkDef::BlockTypes m_BlockTypes;
- cChunkDef::BlockNibbles m_BlockMetas;
- cChunkDef::BlockNibbles m_BlockLight;
- cChunkDef::BlockNibbles m_BlockSkyLight;
-
-protected:
-
- virtual void ChunkBuffer(const cChunkBuffer & a_ChunkBuffer) override
- {
- a_ChunkBuffer.CopyBlocks(m_BlockTypes);
- a_ChunkBuffer.CopyMeta(m_BlockMetas);
- a_ChunkBuffer.CopyLight(m_BlockLight);
- a_ChunkBuffer.CopySkyLight(m_BlockSkyLight);
- }
-} ;
-
-