diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-16 12:39:27 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-16 12:39:27 +0100 |
commit | d63df4ecb1106141e76f4a223678dc2431f26cbd (patch) | |
tree | a43c820ac0e9c9a335b2eefca426102311db78f2 /src/client.h | |
parent | e7736ffdd6ce7ce252920e782a02f8d92608bd44 (diff) | |
download | hax-minetest-server-d63df4ecb1106141e76f4a223678dc2431f26cbd.tar.gz hax-minetest-server-d63df4ecb1106141e76f4a223678dc2431f26cbd.zip |
Move client packet generators to dedicated functions for:
* TOSERVER_INIT_LEGACY
* TOSERVER_DELETEDBLOCKS
* TOSERVER_GOTBLOCKS
* TOSERVER_REMOVED_SOUNDS
Also use a std::vector instead of std::set for TOSERVER_REMOVED_SOUNDS
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index a455213e9..ab5842678 100644 --- a/src/client.h +++ b/src/client.h @@ -542,6 +542,11 @@ private: // Send the item number 'item' as player item to the server void sendPlayerItem(u16 item); + void sendLegacyInit(const char* playerName, const char* playerPassword); + void sendDeletedBlocks(std::vector<v3s16> &blocks); + void sendGotBlocks(v3s16 block); + void sendRemovedSounds(std::vector<s32> &soundList); + float m_packetcounter_timer; float m_connection_reinit_timer; float m_avg_rtt_timer; |