From d63df4ecb1106141e76f4a223678dc2431f26cbd Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 16 Mar 2015 12:39:27 +0100 Subject: 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 --- src/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client.h') 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 &blocks); + void sendGotBlocks(v3s16 block); + void sendRemovedSounds(std::vector &soundList); + float m_packetcounter_timer; float m_connection_reinit_timer; float m_avg_rtt_timer; -- cgit v1.2.3