summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-04 17:46:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit66c15abcf5af44cde75372a8089ac664f9308794 (patch)
tree928b58569bbcb5656ddce458d48bff14669051ae /src/net/tmwa
parente9cc6c1f66ef9fceafa1787616c981f656502bf0 (diff)
downloadmv-66c15abcf5af44cde75372a8089ac664f9308794.tar.gz
mv-66c15abcf5af44cde75372a8089ac664f9308794.tar.bz2
mv-66c15abcf5af44cde75372a8089ac664f9308794.tar.xz
mv-66c15abcf5af44cde75372a8089ac664f9308794.zip
Move processTradeRequest from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/tradehandler.cpp5
-rw-r--r--src/net/tmwa/tradehandler.h3
2 files changed, 8 insertions, 0 deletions
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