From 020e34363763d9cd0d691ae3b3da1ead52defa4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Feb 2015 18:53:28 +0300 Subject: eathena: add packet CMSG_SEARCHSTORE_CLOSE 0x083b. --- src/net/eathena/protocol.h | 1 + src/net/eathena/searchstorehandler.cpp | 5 +++++ src/net/eathena/searchstorehandler.h | 2 ++ src/net/searchstorehandler.h | 2 ++ src/net/tmwa/searchstorehandler.cpp | 4 ++++ src/net/tmwa/searchstorehandler.h | 2 ++ 6 files changed, 16 insertions(+) diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index a6e193ccc..1128172a0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -567,5 +567,6 @@ #define CMSG_SEARCHSTORE_SEARCH 0x0819 #define CMSG_SEARCHSTORE_NEXT_PAGE 0x0940 +#define CMSG_SEARCHSTORE_CLOSE 0x083b #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp index 8288dc0ab..fdea20615 100644 --- a/src/net/eathena/searchstorehandler.cpp +++ b/src/net/eathena/searchstorehandler.cpp @@ -89,6 +89,11 @@ void SearchStoreHandler::nextPage() const createOutPacket(CMSG_SEARCHSTORE_NEXT_PAGE); } +void SearchStoreHandler::close() const +{ + createOutPacket(CMSG_SEARCHSTORE_CLOSE); +} + void SearchStoreHandler::processSearchAck(Net::MessageIn &msg) { const int count = (msg.readInt16("len") - 7) / 106; diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h index 731639e51..2b2f5af08 100644 --- a/src/net/eathena/searchstorehandler.h +++ b/src/net/eathena/searchstorehandler.h @@ -44,6 +44,8 @@ class SearchStoreHandler final : public MessageHandler, void nextPage() const override final; + void close() const override final; + protected: static void processSearchAck(Net::MessageIn &msg); diff --git a/src/net/searchstorehandler.h b/src/net/searchstorehandler.h index 68d5fc6a7..8ea7660d9 100644 --- a/src/net/searchstorehandler.h +++ b/src/net/searchstorehandler.h @@ -42,6 +42,8 @@ class SearchStoreHandler notfinal const int itemId) const = 0; virtual void nextPage() const = 0; + + virtual void close() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/searchstorehandler.cpp b/src/net/tmwa/searchstorehandler.cpp index 9777b32ad..3cd3798a5 100644 --- a/src/net/tmwa/searchstorehandler.cpp +++ b/src/net/tmwa/searchstorehandler.cpp @@ -58,4 +58,8 @@ void SearchStoreHandler::nextPage() const { } +void SearchStoreHandler::close() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/searchstorehandler.h b/src/net/tmwa/searchstorehandler.h index 02a6bad56..fc7946a86 100644 --- a/src/net/tmwa/searchstorehandler.h +++ b/src/net/tmwa/searchstorehandler.h @@ -43,6 +43,8 @@ class SearchStoreHandler final : public MessageHandler, const int itemId) const override final; void nextPage() const override final; + + void close() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2