diff options
Diffstat (limited to 'src/net/eathena/auctionhandler.cpp')
-rw-r--r-- | src/net/eathena/auctionhandler.cpp | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index e84a29cec..154ccaa35 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -35,51 +35,11 @@ extern Net::AuctionHandler *auctionHandler; namespace EAthena { -AuctionHandler::AuctionHandler() : - MessageHandler() +AuctionHandler::AuctionHandler() { - static const uint16_t _messages[] = - { - SMSG_AUCTION_OPEN_WINDOW, - SMSG_AUCTION_RESULTS, - SMSG_AUCTION_SET_ITEM, - SMSG_AUCTION_MESSAGE, - SMSG_AUCTION_CLOSE, - 0 - }; - handledMessages = _messages; auctionHandler = this; } -void AuctionHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_AUCTION_OPEN_WINDOW: - AuctionRecv::processOpenWindow(msg); - break; - - case SMSG_AUCTION_RESULTS: - AuctionRecv::processAuctionResults(msg); - break; - - case SMSG_AUCTION_SET_ITEM: - AuctionRecv::processAuctionSetItem(msg); - break; - - case SMSG_AUCTION_MESSAGE: - AuctionRecv::processAuctionMessage(msg); - break; - - case SMSG_AUCTION_CLOSE: - AuctionRecv::processAuctionClose(msg); - break; - - default: - break; - } -} - void AuctionHandler::cancelReg() const { createOutPacket(CMSG_AUCTION_CANCEL_REG); |