diff options
author | tycho <work.tycho@gmail.com> | 2015-05-30 18:22:03 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-06-05 23:31:21 +0200 |
commit | 19c95ee5645db8e8d1e04d80ca44c21c11732c7f (patch) | |
tree | e53899b0ea68446b99dee439d2ff4e521f9ea812 /src/World.h | |
parent | Merge pull request #2206 from mc-server/APIDumpTimeStamp (diff) | |
download | cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.gz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.bz2 cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.lz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.xz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.zst cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h index 064b50165..078a25562 100644 --- a/src/World.h +++ b/src/World.h @@ -231,7 +231,6 @@ public: void BroadcastChat (const cCompositeChat & a_Message, const cClientHandle * a_Exclude = nullptr); // tolua_end - void BroadcastChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude = nullptr); void BroadcastCollectEntity (const cEntity & a_Pickup, const cPlayer & a_Player, const cClientHandle * a_Exclude = nullptr); void BroadcastDestroyEntity (const cEntity & a_Entity, const cClientHandle * a_Exclude = nullptr); void BroadcastEntityEffect (const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration, const cClientHandle * a_Exclude = nullptr); @@ -609,6 +608,7 @@ public: /** Calls the callback for the chunk specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback */ bool DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback); + bool DoWithChunk(int a_ChunkX, int a_ChunkZ, std::function<bool(cChunk &)> a_Callback); /** Calls the callback for the chunk at the block position specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback **/ bool DoWithChunkAt(Vector3i a_BlockPos, std::function<bool(cChunk &)> a_Callback); |