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/eathena/loginhandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 9376d24b5..2b90965ff 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -44,21 +44,8 @@ namespace EAthena extern ServerInfo charServer; LoginHandler::LoginHandler() : - MessageHandler(), Ea::LoginHandler() { - static const uint16_t _messages[] = - { - SMSG_LOGIN_DATA, - SMSG_LOGIN_ERROR, - SMSG_LOGIN_ERROR2, - SMSG_SERVER_VERSION_RESPONSE, - SMSG_UPDATE_HOST, - SMSG_LOGIN_CODING_KEY, - SMSG_CHAR_PASSWORD_RESPONSE, - 0 - }; - handledMessages = _messages; loginHandler = this; } @@ -66,43 +53,6 @@ LoginHandler::~LoginHandler() { } -void LoginHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_LOGIN_DATA: - Ea::LoginRecv::processLoginData(msg); - break; - - case SMSG_LOGIN_ERROR: - Ea::LoginRecv::processLoginError(msg); - break; - - case SMSG_LOGIN_ERROR2: - LoginRecv::processLoginError2(msg); - break; - - case SMSG_SERVER_VERSION_RESPONSE: - LoginRecv::processServerVersion(msg); - break; - - case SMSG_UPDATE_HOST: - Ea::LoginRecv::processUpdateHost(msg); - break; - - case SMSG_LOGIN_CODING_KEY: - LoginRecv::processCondingKey(msg); - break; - - case SMSG_CHAR_PASSWORD_RESPONSE: - LoginRecv::processCharPasswordResponse(msg); - break; - - default: - break; - } -} - void LoginHandler::connect() { if (!Network::mInstance) |