From 66c15abcf5af44cde75372a8089ac664f9308794 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Sep 2014 17:46:11 +0300 Subject: Move processTradeRequest from ea namespace into eathena and tmwa. --- src/net/tmwa/tradehandler.cpp | 5 +++++ src/net/tmwa/tradehandler.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index 0cc768c5a..0a67a9202 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -148,4 +148,9 @@ void TradeHandler::cancel() const MessageOut outMsg(CMSG_TRADE_CANCEL_REQUEST); } +void TradeHandler::processTradeRequest(Net::MessageIn &msg) const +{ + processTradeRequestContinue(msg.readString(24, "name")); +} + } // namespace TmwAthena diff --git a/src/net/tmwa/tradehandler.h b/src/net/tmwa/tradehandler.h index 28f43cb0a..39222e7ba 100644 --- a/src/net/tmwa/tradehandler.h +++ b/src/net/tmwa/tradehandler.h @@ -53,6 +53,9 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler void finish() const override final; void cancel() const override final; + + protected: + void processTradeRequest(Net::MessageIn &msg) const; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2