diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-06 15:01:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-06 15:01:26 +0300 |
commit | 4028eee767414d73a4937dd61eea8d138e2a7b9e (patch) | |
tree | 5458292645c384a1e7a12c1b6b263a17f696ca59 /src/net | |
parent | 773f760bc1a308152265c40161789d8ae318aba4 (diff) | |
download | mv-4028eee767414d73a4937dd61eea8d138e2a7b9e.tar.gz mv-4028eee767414d73a4937dd61eea8d138e2a7b9e.tar.bz2 mv-4028eee767414d73a4937dd61eea8d138e2a7b9e.tar.xz mv-4028eee767414d73a4937dd61eea8d138e2a7b9e.zip |
eathena: add packet CMSG_AUCTION_CANCEL 0x024e.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/auctionhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/auctionhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/auctionhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/auctionhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/auctionhandler.h | 2 |
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/auctionhandler.h b/src/net/auctionhandler.h index a53815462..b8b51b7f1 100644 --- a/src/net/auctionhandler.h +++ b/src/net/auctionhandler.h @@ -44,6 +44,8 @@ class AuctionHandler notfinal virtual void reg(const int currentPrice, const int maxPrice, const int hours) const = 0; + + virtual void cancel(const int auctionId) const = 0; }; } // namespace Net diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index f390e2aae..45b1e2dbb 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -149,4 +149,10 @@ void AuctionHandler::reg(const int currentPrice, outMsg.writeInt32(hours, "delete hour"); } +void AuctionHandler::cancel(const int auctionId) const +{ + createOutPacket(CMSG_AUCTION_CANCEL); + outMsg.writeInt32(auctionId, "auction id"); +} + } // namespace EAthena diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h index 0c8ccee3a..1c20b5317 100644 --- a/src/net/eathena/auctionhandler.h +++ b/src/net/eathena/auctionhandler.h @@ -45,6 +45,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler const int maxPrice, const int hours) const override final; + void cancel(const int auctionId) const override final; + protected: static void processOpenWindow(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 8ec1ff842..e2651a4f6 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -519,5 +519,6 @@ #define CMSG_AUCTION_CANCEL_REG 0x024b #define CMSG_AUCTION_SET_ITEM 0x024c #define CMSG_AUCTION_REGISTER 0x024d +#define CMSG_AUCTION_CANCEL 0x024e #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/tmwa/auctionhandler.cpp b/src/net/tmwa/auctionhandler.cpp index f59baf993..fe67264ac 100644 --- a/src/net/tmwa/auctionhandler.cpp +++ b/src/net/tmwa/auctionhandler.cpp @@ -57,4 +57,8 @@ void AuctionHandler::reg(const int currentPrice A_UNUSED, { } +void AuctionHandler::cancel(const int auctionId A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h index 12b543ff3..0ccba887b 100644 --- a/src/net/tmwa/auctionhandler.h +++ b/src/net/tmwa/auctionhandler.h @@ -45,6 +45,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler void reg(const int currentPrice, const int maxPrice, const int hours) const override final; + + void cancel(const int auctionId) const override final; }; } // namespace TmwAthena |