summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-11 11:48:20 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-11 11:48:20 +0100
commitaf44154ff57ee725903d58c94cbba12413ddeb41 (patch)
tree688bb37acf3c9795266e3f6513e39056808128a3 /source/cClientHandle.h
parentAnvil format: fixed loading with XZY ordering (diff)
downloadcuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar.gz
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar.bz2
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar.lz
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar.xz
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.tar.zst
cuberite-af44154ff57ee725903d58c94cbba12413ddeb41.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h
index 2a9833de4..6e1079569 100644
--- a/source/cClientHandle.h
+++ b/source/cClientHandle.h
@@ -86,8 +86,6 @@ public:
// Removes the client from all chunks. Used when switching worlds or destroying the player
void RemoveFromAllChunks(void);
- void ChunkJustSent(cChunk * a_ChunkSent); // Called by cChunk when it is loaded / generated and sent to all clients registered in it
-
inline bool IsLoggedIn(void) const { return m_State >= csAuthenticating; }
void Tick(float a_Dt);
@@ -106,6 +104,9 @@ public:
void SetViewDistance(int a_ViewDistance); //tolua_export
int GetUniqueID() const { return m_UniqueID; } //tolua_export
+
+ /// Returns true if the client wants the chunk specified to be sent (in m_ChunksToSend)
+ bool WantsSendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
private: