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/itemhandler.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/itemhandler.cpp')
-rw-r--r-- | src/net/tmwa/itemhandler.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/net/tmwa/itemhandler.cpp b/src/net/tmwa/itemhandler.cpp index 8bf6239d9..eb42aa2a3 100644 --- a/src/net/tmwa/itemhandler.cpp +++ b/src/net/tmwa/itemhandler.cpp @@ -33,40 +33,8 @@ namespace TmwAthena { ItemHandler::ItemHandler() : - MessageHandler(), Ea::ItemHandler() { - static const uint16_t _messages[] = - { - SMSG_ITEM_VISIBLE, - SMSG_ITEM_DROPPED, - SMSG_ITEM_REMOVE, - 0 - }; - handledMessages = _messages; -} - -void ItemHandler::handleMessage(Net::MessageIn &msg) -{ - BLOCK_START("ItemHandler::handleMessage") - switch (msg.getId()) - { - case SMSG_ITEM_VISIBLE: - ItemRecv::processItemVisible(msg); - break; - - case SMSG_ITEM_DROPPED: - ItemRecv::processItemDropped(msg); - break; - - case SMSG_ITEM_REMOVE: - Ea::ItemRecv::processItemRemove(msg); - break; - - default: - break; - } - BLOCK_END("ItemHandler::handleMessage") } } // namespace TmwAthena |