summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 13:22:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 13:22:51 +0300
commit0335e7660cd45d85cbd912510b9d2967bdba553d (patch)
tree3df589a7c081c67aa7c81a45b5bfc443ca5c9ca5 /src
parent3681b42535d541adf6e72b87dbb0865fa3f4aa3a (diff)
downloadmanaplus-0335e7660cd45d85cbd912510b9d2967bdba553d.tar.gz
manaplus-0335e7660cd45d85cbd912510b9d2967bdba553d.tar.bz2
manaplus-0335e7660cd45d85cbd912510b9d2967bdba553d.tar.xz
manaplus-0335e7660cd45d85cbd912510b9d2967bdba553d.zip
eathena: add packet support CMSG_AUCTION_CANCEL_REQUEST 0x024b.
Diffstat (limited to 'src')
-rw-r--r--src/net/auctionhandler.h2
-rw-r--r--src/net/eathena/auctionhandler.cpp7
-rw-r--r--src/net/eathena/auctionhandler.h2
-rw-r--r--src/net/eathena/protocol.h2
-rw-r--r--src/net/tmwa/auctionhandler.cpp4
-rw-r--r--src/net/tmwa/auctionhandler.h2
6 files changed, 19 insertions, 0 deletions
diff --git a/src/net/auctionhandler.h b/src/net/auctionhandler.h
index 9208bfd76..75da1ca2e 100644
--- a/src/net/auctionhandler.h
+++ b/src/net/auctionhandler.h
@@ -33,6 +33,8 @@ class AuctionHandler notfinal
public:
virtual ~AuctionHandler()
{ }
+
+ virtual void cancelRequest() const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index 7827d19ce..679786bb6 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -20,6 +20,7 @@
#include "net/eathena/auctionhandler.h"
+#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
#include "debug.h"
@@ -99,4 +100,10 @@ void AuctionHandler::processAuctionSetItem(Net::MessageIn &msg)
msg.readUInt8("flag");
}
+void AuctionHandler::cancelRequest() const
+{
+ createOutPacket(CMSG_AUCTION_CANCEL_REQUEST);
+ outMsg.writeInt16(0, "type"); // unused
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index c39f831fc..a4c166613 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -36,6 +36,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
void handleMessage(Net::MessageIn &msg) override final;
+ void cancelRequest() 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 81f517db0..b02b6e79c 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -514,4 +514,6 @@
#define CMSG_FRIENDS_REQUEST_ACK 0x0208
#define CMSG_FRIENDS_DELETE_PLAYER 0x020a
+#define CMSG_AUCTION_CANCEL_REQUEST 0x024b
+
#endif // NET_EATHENA_PROTOCOL_H
diff --git a/src/net/tmwa/auctionhandler.cpp b/src/net/tmwa/auctionhandler.cpp
index f4dc0aebf..e14d0d375 100644
--- a/src/net/tmwa/auctionhandler.cpp
+++ b/src/net/tmwa/auctionhandler.cpp
@@ -42,4 +42,8 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg A_UNUSED)
{
}
+void AuctionHandler::cancelRequest() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h
index 8b36ae772..c3c624ea4 100644
--- a/src/net/tmwa/auctionhandler.h
+++ b/src/net/tmwa/auctionhandler.h
@@ -36,6 +36,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
A_DELETE_COPY(AuctionHandler)
void handleMessage(Net::MessageIn &msg) override final;
+
+ void cancelRequest() const override final;
};
} // namespace TmwAthena