summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 17:32:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 17:32:13 +0300
commit0255911fce07d79d29684f9837f96a4c824f4040 (patch)
tree39a4422f86d8075bd0507119cdcccb1b35fc1234 /src/net/eathena
parent3b96653ddb43f1d02979ebb92fb3b08f39a5aa68 (diff)
downloadplus-0255911fce07d79d29684f9837f96a4c824f4040.tar.gz
plus-0255911fce07d79d29684f9837f96a4c824f4040.tar.bz2
plus-0255911fce07d79d29684f9837f96a4c824f4040.tar.xz
plus-0255911fce07d79d29684f9837f96a4c824f4040.zip
Add empty searchstorehandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/generalhandler.cpp5
-rw-r--r--src/net/eathena/generalhandler.h1
-rw-r--r--src/net/eathena/searchstorehandler.cpp52
-rw-r--r--src/net/eathena/searchstorehandler.h43
4 files changed, 100 insertions, 1 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 570d79136..7ded3aa35 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -65,6 +65,7 @@
#include "net/eathena/pethandler.h"
#include "net/eathena/playerhandler.h"
#include "net/eathena/protocol.h"
+#include "net/eathena/searchstorehandler.h"
#include "net/eathena/serverfeatures.h"
#include "net/eathena/tradehandler.h"
#include "net/eathena/skillhandler.h"
@@ -117,7 +118,8 @@ GeneralHandler::GeneralHandler() :
mFriendsHandler(new FriendsHandler),
mElementalHandler(new ElementalHandler),
mMarketHandler(new MarketHandler),
- mVendingHandler(new VendingHandler)
+ mVendingHandler(new VendingHandler),
+ mSearchStoreHandler(new SearchStoreHandler)
{
static const uint16_t _messages[] =
{
@@ -307,6 +309,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mElementalHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
+ mNetwork->registerHandler(mSearchStoreHandler);
}
void GeneralHandler::reload()
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index fcd22265e..892653739 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -95,6 +95,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mElementalHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
+ MessageHandlerPtr mSearchStoreHandler;
};
} // namespace EAthena
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
new file mode 100644
index 000000000..602a8dce1
--- /dev/null
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -0,0 +1,52 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "net/eathena/searchstorehandler.h"
+
+#include "net/eathena/protocol.h"
+
+#include "debug.h"
+
+extern Net::SearchStoreHandler *searchStoreHandler;
+
+namespace EAthena
+{
+
+SearchStoreHandler::SearchStoreHandler() :
+ MessageHandler()
+{
+ static const uint16_t _messages[] =
+ {
+ 0
+ };
+ handledMessages = _messages;
+ searchStoreHandler = this;
+}
+
+void SearchStoreHandler::handleMessage(Net::MessageIn &msg)
+{
+ switch (msg.getId())
+ {
+ default:
+ break;
+ }
+}
+
+} // namespace EAthena
diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h
new file mode 100644
index 000000000..f9c486faf
--- /dev/null
+++ b/src/net/eathena/searchstorehandler.h
@@ -0,0 +1,43 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_EATHENA_SEARCHSTOREHANDLER_H
+#define NET_EATHENA_SEARCHSTOREHANDLER_H
+
+#include "net/searchstorehandler.h"
+
+#include "net/eathena/messagehandler.h"
+
+namespace EAthena
+{
+class SearchStoreHandler final : public MessageHandler,
+ public Net::SearchStoreHandler
+{
+ public:
+ SearchStoreHandler();
+
+ A_DELETE_COPY(SearchStoreHandler)
+
+ void handleMessage(Net::MessageIn &msg) override final;
+};
+
+} // namespace EAthena
+
+#endif // NET_EATHENA_SEARCHSTOREHANDLER_H