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/cashshophandler.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/cashshophandler.cpp')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 53888cf46..058dedfdc 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -31,57 +31,12 @@ extern Net::CashShopHandler *cashShopHandler; namespace EAthena { -CashShopHandler::CashShopHandler() : - MessageHandler() +CashShopHandler::CashShopHandler() { - static const uint16_t _messages[] = - { - SMSG_NPC_CASH_SHOP_OPEN, - SMSG_NPC_CASH_BUY_ACK, - SMSG_NPC_CASH_POINTS, - SMSG_NPC_CASH_BUY, - SMSG_NPC_CASH_TAB_PRICE_LIST, - SMSG_NPC_CASH_SCHEDULE, - 0 - }; - handledMessages = _messages; cashShopHandler = this; CashShopRecv::mBuyDialog = nullptr; } -void CashShopHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_NPC_CASH_SHOP_OPEN: - CashShopRecv::processCashShopOpen(msg); - break; - - case SMSG_NPC_CASH_BUY_ACK: - CashShopRecv::processCashShopBuyAck(msg); - break; - - case SMSG_NPC_CASH_POINTS: - CashShopRecv::processCashShopPoints(msg); - break; - - case SMSG_NPC_CASH_BUY: - CashShopRecv::processCashShopBuy(msg); - break; - - case SMSG_NPC_CASH_TAB_PRICE_LIST: - CashShopRecv::processCashShopTabPriceList(msg); - break; - - case SMSG_NPC_CASH_SCHEDULE: - CashShopRecv::processCashShopSchedule(msg); - break; - - default: - break; - } -} - void CashShopHandler::buyItem(const int points, const int itemId, const ItemColor color A_UNUSED, |