diff options
author | tycho <work.tycho@gmail.com> | 2015-09-24 16:43:31 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-09-24 16:54:32 +0200 |
commit | 6e86d20f730aa46e0fa6b13b26a3b2586d21e513 (patch) | |
tree | f9067a30d91f764c92a5b77c2bca2cf00dd53162 /src/World.h | |
parent | Merge pull request #2488 from cuberite/ChatFlag (diff) | |
download | cuberite-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.h | 5 |
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. |