diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-06 15:14:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-06 15:14:42 +0300 |
commit | 5b0506f5c2c43b155ad18eb346bf381b447f1281 (patch) | |
tree | 1c11c1bde031254768d4c6480ff0eddfba6da81b /src/net/eathena | |
parent | 4002c63e4164fa496038dee0e9cad2f5e1598772 (diff) | |
download | manaverse-5b0506f5c2c43b155ad18eb346bf381b447f1281.tar.gz manaverse-5b0506f5c2c43b155ad18eb346bf381b447f1281.tar.bz2 manaverse-5b0506f5c2c43b155ad18eb346bf381b447f1281.tar.xz manaverse-5b0506f5c2c43b155ad18eb346bf381b447f1281.zip |
eathena: add packet CMSG_AUCTION_BID 0x024f.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/auctionhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/auctionhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 12 insertions, 0 deletions
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 |