From 5b0506f5c2c43b155ad18eb346bf381b447f1281 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jan 2015 15:14:42 +0300 Subject: eathena: add packet CMSG_AUCTION_BID 0x024f. --- src/net/auctionhandler.h | 3 +++ src/net/eathena/auctionhandler.cpp | 8 ++++++++ src/net/eathena/auctionhandler.h | 3 +++ src/net/eathena/protocol.h | 1 + src/net/tmwa/auctionhandler.cpp | 5 +++++ src/net/tmwa/auctionhandler.h | 3 +++ 6 files changed, 23 insertions(+) diff --git a/src/net/auctionhandler.h b/src/net/auctionhandler.h index b803f6bf6..815393056 100644 --- a/src/net/auctionhandler.h +++ b/src/net/auctionhandler.h @@ -48,6 +48,9 @@ class AuctionHandler notfinal virtual void cancel(const int auctionId) const = 0; virtual void close(const int auctionId) const = 0; + + virtual void bid(const int auctionId, + const int money) const = 0; }; } // namespace Net diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index afb5adbb5..0afe441a9 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -161,4 +161,12 @@ void AuctionHandler::close(const int auctionId) const outMsg.writeInt32(auctionId, "auction id"); } +void AuctionHandler::bid(const int auctionId, + const int money) const +{ + createOutPacket(CMSG_AUCTION_BID); + outMsg.writeInt32(auctionId, "auction id"); + outMsg.writeInt32(money, "money"); +} + } // namespace EAthena diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h index e8406f317..4cf336b96 100644 --- a/src/net/eathena/auctionhandler.h +++ b/src/net/eathena/auctionhandler.h @@ -49,6 +49,9 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler void close(const int auctionId) const override final; + void bid(const int auctionId, + const int money) 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 e1c3f4775..dd53a12f0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -521,5 +521,6 @@ #define CMSG_AUCTION_REGISTER 0x024d #define CMSG_AUCTION_CANCEL 0x024e #define CMSG_AUCTION_CLOSE 0x025d +#define CMSG_AUCTION_BID 0x024f #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/tmwa/auctionhandler.cpp b/src/net/tmwa/auctionhandler.cpp index 2909881f5..a52a01b36 100644 --- a/src/net/tmwa/auctionhandler.cpp +++ b/src/net/tmwa/auctionhandler.cpp @@ -65,4 +65,9 @@ void AuctionHandler::close(const int auctionId A_UNUSED) const { } +void AuctionHandler::bid(const int auctionId A_UNUSED, + const int money A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h index f36c07fa8..4abe9f514 100644 --- a/src/net/tmwa/auctionhandler.h +++ b/src/net/tmwa/auctionhandler.h @@ -49,6 +49,9 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler void cancel(const int auctionId) const override final; void close(const int auctionId) const override final; + + void bid(const int auctionId, + const int money) const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2