diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
commit | 84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch) | |
tree | 2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/tmwa/gamehandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r-- | src/net/tmwa/gamehandler.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp index 00537bf83..7d6d912fa 100644 --- a/src/net/tmwa/gamehandler.cpp +++ b/src/net/tmwa/gamehandler.cpp @@ -46,54 +46,11 @@ namespace TmwAthena extern ServerInfo mapServer; GameHandler::GameHandler() : - MessageHandler(), Ea::GameHandler() { - static const uint16_t _messages[] = - { - SMSG_MAP_LOGIN_SUCCESS, - SMSG_SERVER_PING, - SMSG_WHO_ANSWER, - SMSG_CHAR_SWITCH_RESPONSE, - SMSG_MAP_QUIT_RESPONSE, - 0 - }; - handledMessages = _messages; gameHandler = this; } -void GameHandler::handleMessage(Net::MessageIn &msg) -{ - BLOCK_START("GameHandler::handleMessage") - switch (msg.getId()) - { - case SMSG_MAP_LOGIN_SUCCESS: - GameRecv::processMapLogin(msg); - break; - - case SMSG_SERVER_PING: - // We ignore this for now - // int tick = msg.readInt32() - break; - - case SMSG_WHO_ANSWER: - Ea::GameRecv::processWhoAnswer(msg); - break; - - case SMSG_CHAR_SWITCH_RESPONSE: - Ea::GameRecv::processCharSwitchResponse(msg); - break; - - case SMSG_MAP_QUIT_RESPONSE: - Ea::GameRecv::processMapQuitResponse(msg); - break; - - default: - break; - } - BLOCK_END("GameHandler::handleMessage") -} - void GameHandler::mapLoadedEvent() const { createOutPacket(CMSG_MAP_LOADED); |