diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-15 15:16:52 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-15 15:16:52 +0100 |
commit | 78fb7896313f2074fa814309901e30d4a4f218e2 (patch) | |
tree | efb2cee4c5e3defe04a05cae0e2f673ba21f7b90 /src/ClientHandle.h | |
parent | APIDump: Fixed example cCompositeChat URL (diff) | |
download | cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.gz cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.bz2 cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.lz cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.xz cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.tar.zst cuberite-78fb7896313f2074fa814309901e30d4a4f218e2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 082ed2fcc..a0dd4ff7a 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -125,6 +125,9 @@ public: inline bool IsLoggedIn(void) const { return (m_State >= csAuthenticating); } + /** Returns the positions from the last block that the player placed. */ + const Vector3i & GetLastPlacedBlock(void) const { return m_LastPlacedBlock; } // tolua_export + /** Called while the client is being ticked from the world via its cPlayer object */ void Tick(float a_Dt); @@ -432,6 +435,9 @@ private: /** Client Settings */ AString m_Locale; + + /** The positions from the last block that the player placed. It's needed to verify the sign text change. */ + Vector3i m_LastPlacedBlock; /** The plugin channels that the client has registered. */ cChannels m_PluginChannels; |