Chat protocol rewrite (#5117)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sun, 16 Jul 2017 08:47:31 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2017 08:47:31 +0000 (10:47 +0200)
commit7ddf67aa1478813e12a5fcdfb4986b9e5adfe62f
tree0bbbee7ed9470e0de149ec9bdaf6a51693ec0e22
parentecbc972ea6a2371d64b1d9c9576d31be36b8ae6a
Chat protocol rewrite (#5117)

* New TOCLIENT_CHAT_MESSAGE packet

* Rename old packet to TOCLIENT_CHAT_MESSAGE_OLD for compat
* Handle TOCLIENT_CHAT_MESSAGE new structure client side
* Client chat queue should use a specific object
* SendChatMessage: use the right packet depending on protocol version (not complete yet)
* Add chatmessage(type) objects and handle them client side (partially)
* Use ChatMessage instead of std::wstring server side

* Update with timestamp support
16 files changed:
src/chatmessage.h [new file with mode: 0644]
src/client.cpp
src/client.h
src/clientiface.cpp
src/clientiface.h
src/game.cpp
src/network/clientopcodes.cpp
src/network/clientpackethandler.cpp
src/network/networkpacket.cpp
src/network/networkpacket.h
src/network/networkprotocol.h
src/network/serveropcodes.cpp
src/network/serverpackethandler.cpp
src/script/lua_api/l_client.cpp
src/server.cpp
src/server.h