summaryrefslogtreecommitdiff
path: root/src/net/tmwa/buysellhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r--src/net/tmwa/buysellhandler.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp
index 963a40a5f..b2582a595 100644
--- a/src/net/tmwa/buysellhandler.cpp
+++ b/src/net/tmwa/buysellhandler.cpp
@@ -44,54 +44,12 @@ namespace TmwAthena
{
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)
-{
- BLOCK_START("BuySellHandler::handleMessage")
- 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;
- }
- BLOCK_END("BuySellHandler::handleMessage")
-}
-
void BuySellHandler::requestSellList(const std::string &nick) const
{
if (nick.empty() != 0 || !shopWindow)