diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 17:46:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 66c15abcf5af44cde75372a8089ac664f9308794 (patch) | |
tree | 928b58569bbcb5656ddce458d48bff14669051ae /src/net/eathena | |
parent | e9cc6c1f66ef9fceafa1787616c981f656502bf0 (diff) | |
download | manaverse-66c15abcf5af44cde75372a8089ac664f9308794.tar.gz manaverse-66c15abcf5af44cde75372a8089ac664f9308794.tar.bz2 manaverse-66c15abcf5af44cde75372a8089ac664f9308794.tar.xz manaverse-66c15abcf5af44cde75372a8089ac664f9308794.zip |
Move processTradeRequest from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/tradehandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/tradehandler.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index 1e71d4a43..1d9fabaa0 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -146,4 +146,9 @@ void TradeHandler::cancel() const MessageOut outMsg(CMSG_TRADE_CANCEL_REQUEST); } +void TradeHandler::processTradeRequest(Net::MessageIn &msg) const +{ + processTradeRequestContinue(msg.readString(24, "name")); +} + } // namespace EAthena diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h index 16a7669e2..eb50d65c0 100644 --- a/src/net/eathena/tradehandler.h +++ b/src/net/eathena/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 EAthena |