summaryrefslogtreecommitdiffstats
path: root/source/cChunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-21 16:18:02 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-21 16:18:02 +0100
commitf0145ee9fa09ce2c27b8149fee37c6f5fce7e1da (patch)
tree9eaa3d17bbeda373649470cd5ce060c4fbf76b58 /source/cChunk.h
parentOptimized hightmap recalc when setting a chunk's block (diff)
downloadcuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar.gz
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar.bz2
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar.lz
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar.xz
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.tar.zst
cuberite-f0145ee9fa09ce2c27b8149fee37c6f5fce7e1da.zip
Diffstat (limited to '')
-rw-r--r--source/cChunk.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/cChunk.h b/source/cChunk.h
index 289461f0d..bbeb2f1b4 100644
--- a/source/cChunk.h
+++ b/source/cChunk.h
@@ -146,8 +146,7 @@ public:
int GetPosZ() { return m_PosZ; }
cWorld * GetWorld() { return m_World; }
- void Send( cClientHandle* a_Client );
- void AsyncUnload( cClientHandle* a_Client );
+ void SendTo( cClientHandle * a_Client );
void SetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockMeta );
void FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, char a_BlockType, char a_BlockMeta ); // Doesn't force block updates on neighbors, use for simple changes such as grass growing etc.
@@ -161,7 +160,9 @@ public:
void SendBlockTo( int a_X, int a_Y, int a_Z, cClientHandle* a_Client );
- void AddClient (cClientHandle* a_Client );
+ /// Adds a client to the chunk; returns true if added, false if already there
+ bool AddClient (cClientHandle* a_Client );
+
void RemoveClient (cClientHandle* a_Client );
bool HasClient (cClientHandle* a_Client );
bool HasAnyClients(void); // Returns true if theres any client in the chunk; false otherwise