summaryrefslogtreecommitdiff
path: root/src/net/eathena/buysellhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/buysellhandler.cpp')
-rw-r--r--src/net/eathena/buysellhandler.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp
index ea15b1ac3..b4cd56fc6 100644
--- a/src/net/eathena/buysellhandler.cpp
+++ b/src/net/eathena/buysellhandler.cpp
@@ -36,52 +36,12 @@ namespace EAthena
{
BuySellHandler::BuySellHandler() :
- MessageHandler(),
Ea::BuySellHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_NPC_BUY_SELL_CHOICE,
- SMSG_NPC_BUY,
- SMSG_NPC_SELL,
- SMSG_NPC_BUY_RESPONSE,
- SMSG_NPC_SELL_RESPONSE,
- 0
- };
- handledMessages = _messages;
buySellHandler = this;
Ea::BuySellRecv::mBuyDialog = nullptr;
}
-void BuySellHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_NPC_BUY_SELL_CHOICE:
- Ea::BuySellRecv::processNpcBuySellChoice(msg);
- break;
-
- case SMSG_NPC_BUY:
- BuySellRecv::processNpcBuy(msg);
- break;
-
- case SMSG_NPC_SELL:
- Ea::BuySellRecv::processNpcSell(msg);
- break;
-
- case SMSG_NPC_BUY_RESPONSE:
- Ea::BuySellRecv::processNpcBuyResponse(msg);
- break;
-
- case SMSG_NPC_SELL_RESPONSE:
- BuySellRecv::processNpcSellResponse(msg);
- break;
-
- default:
- break;
- }
-}
-
void BuySellHandler::requestSellList(const std::string &nick A_UNUSED) const
{
}