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/elementalhandler.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/elementalhandler.cpp')
-rw-r--r-- | src/net/eathena/elementalhandler.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp index 44c1437a8..e23758647 100644 --- a/src/net/eathena/elementalhandler.cpp +++ b/src/net/eathena/elementalhandler.cpp @@ -30,34 +30,9 @@ extern Net::ElementalHandler *elementalHandler; namespace EAthena { -ElementalHandler::ElementalHandler() : - MessageHandler() +ElementalHandler::ElementalHandler() { - static const uint16_t _messages[] = - { - SMSG_ELEMENTAL_UPDATE_STATUS, - SMSG_ELEMENTAL_INFO, - 0 - }; - handledMessages = _messages; elementalHandler = this; } -void ElementalHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_ELEMENTAL_UPDATE_STATUS: - ElementalRecv::processElementalUpdateStatus(msg); - break; - - case SMSG_ELEMENTAL_INFO: - ElementalRecv::processElementalInfo(msg); - break; - - default: - break; - } -} - } // namespace EAthena |