From bf13084f1fa8560d8eda8551b74755b543c1fdd4 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 2 Jul 2012 16:30:17 +0000 Subject: cBlockArea object added (with only minimal testing so far) git-svn-id: http://mc-server.googlecode.com/svn/trunk@641 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunkMap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/cChunkMap.h') diff --git a/source/cChunkMap.h b/source/cChunkMap.h index e00ed80c1..5baa32485 100644 --- a/source/cChunkMap.h +++ b/source/cChunkMap.h @@ -171,6 +171,9 @@ public: bool IsChunkLighted(int a_ChunkX, int a_ChunkZ); + /// 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); + /// Returns the number of valid chunks and the number of dirty chunks void GetChunkStats(int & a_NumChunksValid, int & a_NumChunksDirty); -- cgit v1.2.3