summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 15:08:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 15:08:22 +0300
commit4002c63e4164fa496038dee0e9cad2f5e1598772 (patch)
tree7edffccbbb5148d68e660f7642cd41e51ea21bc9 /src/net/eathena
parent4028eee767414d73a4937dd61eea8d138e2a7b9e (diff)
downloadplus-4002c63e4164fa496038dee0e9cad2f5e1598772.tar.gz
plus-4002c63e4164fa496038dee0e9cad2f5e1598772.tar.bz2
plus-4002c63e4164fa496038dee0e9cad2f5e1598772.tar.xz
plus-4002c63e4164fa496038dee0e9cad2f5e1598772.zip
eathena: add packet CMSG_AUCTION_CLOSE 0x025d.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/auctionhandler.cpp6
-rw-r--r--src/net/eathena/auctionhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index 45b1e2dbb..afb5adbb5 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -155,4 +155,10 @@ void AuctionHandler::cancel(const int auctionId) const
outMsg.writeInt32(auctionId, "auction id");
}
+void AuctionHandler::close(const int auctionId) const
+{
+ createOutPacket(CMSG_AUCTION_CLOSE);
+ outMsg.writeInt32(auctionId, "auction id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index 1c20b5317..e8406f317 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -47,6 +47,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
void cancel(const int auctionId) const override final;
+ void close(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 e2651a4f6..e1c3f4775 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -520,5 +520,6 @@
#define CMSG_AUCTION_SET_ITEM 0x024c
#define CMSG_AUCTION_REGISTER 0x024d
#define CMSG_AUCTION_CANCEL 0x024e
+#define CMSG_AUCTION_CLOSE 0x025d
#endif // NET_EATHENA_PROTOCOL_H