diff options
Diffstat (limited to 'source/ChunkMap.h')
-rw-r--r-- | source/ChunkMap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/ChunkMap.h b/source/ChunkMap.h index 165e41f10..bfdbc889b 100644 --- a/source/ChunkMap.h +++ b/source/ChunkMap.h @@ -22,6 +22,7 @@ class cFurnaceEntity; class cPawn; class cPickup; class cChunkDataSerializer; +class cBlockArea; typedef std::list<cClientHandle *> cClientHandleList; typedef cChunk * cChunkPtr; @@ -216,6 +217,9 @@ public: /// Calls the callback for each chunk in the coords specified (all cords are inclusive). Returns true if all chunks have been processed successfully bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback); + /// Writes the block area into the specified coords. Returns true if all chunks have been processed. Prefer cBlockArea::Write() instead. + bool WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes); + /// Returns the number of valid chunks and the number of dirty chunks void GetChunkStats(int & a_NumChunksValid, int & a_NumChunksDirty); |