summaryrefslogtreecommitdiffstats
path: root/src/World.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/World.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 'src/World.h')
-rw-r--r--src/World.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index 1ee473970..1902296be 100644
--- a/src/World.h
+++ b/src/World.h
@@ -27,7 +27,7 @@
#include "Blocks/BroadcastInterface.h"
#include "FastRandom.h"
#include "ClientHandle.h"
-
+#include <functional>
@@ -434,6 +434,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 */
virtual bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback) override;
+ /** 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);
+
// tolua_begin
/** Sets the block at the specified coords to the specified value.