From 66cb4abf50fe7bb07aaedf0488b25825e5c08165 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Feb 2015 18:40:26 +0300 Subject: eathena: add packet CMSG_SEARCHSTORE_NEXT_PAGE 0x0940. --- 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(+) (limited to 'src/net') diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index f58f4ff93..20df3a5c0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -565,5 +565,6 @@ #define CMSG_BUYINGSTORE_SELL 0x0811 #define CMSG_SEARCHSTORE_SEARCH 0x0819 +#define CMSG_SEARCHSTORE_NEXT_PAGE 0x0940 #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp index 6d6a7e1b8..349bd336e 100644 --- a/src/net/eathena/searchstorehandler.cpp +++ b/src/net/eathena/searchstorehandler.cpp @@ -79,6 +79,11 @@ void SearchStoreHandler::search(const StoreSearchType::Type type, outMsg.writeInt16(itemId, "item id"); } +void SearchStoreHandler::nextPage() const +{ + createOutPacket(CMSG_SEARCHSTORE_NEXT_PAGE); +} + 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 8412f17dc..892937e7a 100644 --- a/src/net/eathena/searchstorehandler.h +++ b/src/net/eathena/searchstorehandler.h @@ -42,6 +42,8 @@ class SearchStoreHandler final : public MessageHandler, const int maxPrice, const int itemId) const override final; + void nextPage() const override final; + protected: static void processSearchAck(Net::MessageIn &msg); diff --git a/src/net/searchstorehandler.h b/src/net/searchstorehandler.h index dc775a7b6..68d5fc6a7 100644 --- a/src/net/searchstorehandler.h +++ b/src/net/searchstorehandler.h @@ -40,6 +40,8 @@ class SearchStoreHandler notfinal const int minPrice, const int maxPrice, const int itemId) const = 0; + + virtual void nextPage() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/searchstorehandler.cpp b/src/net/tmwa/searchstorehandler.cpp index ef70b3d27..9777b32ad 100644 --- a/src/net/tmwa/searchstorehandler.cpp +++ b/src/net/tmwa/searchstorehandler.cpp @@ -54,4 +54,8 @@ void SearchStoreHandler::search(const StoreSearchType::Type type A_UNUSED, { } +void SearchStoreHandler::nextPage() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/searchstorehandler.h b/src/net/tmwa/searchstorehandler.h index 7750758f5..02a6bad56 100644 --- a/src/net/tmwa/searchstorehandler.h +++ b/src/net/tmwa/searchstorehandler.h @@ -41,6 +41,8 @@ class SearchStoreHandler final : public MessageHandler, const int minPrice, const int maxPrice, const int itemId) const override final; + + void nextPage() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2