summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-24 16:43:31 +0200
committertycho <work.tycho@gmail.com>2015-09-24 16:54:32 +0200
commit6e86d20f730aa46e0fa6b13b26a3b2586d21e513 (patch)
treef9067a30d91f764c92a5b77c2bca2cf00dd53162 /src/ChunkMap.h
parentMerge pull request #2488 from cuberite/ChatFlag (diff)
downloadcuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.gz
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.bz2
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.lz
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.xz
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.zst
cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index 4974671da..e9309dbd8 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -344,6 +344,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);
+
+ /** Calls the callback for each loaded chunk. Returns true if all chunks have been processed successfully */
+ bool ForEachLoadedChunk(std::function<bool(int, int)> 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);