summaryrefslogtreecommitdiff
path: root/src/net/tmwa
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/tmwa
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/tmwa')
-rw-r--r--src/net/tmwa/generalhandler.cpp5
-rw-r--r--src/net/tmwa/generalhandler.h1
-rw-r--r--src/net/tmwa/searchstorehandler.cpp50
-rw-r--r--src/net/tmwa/searchstorehandler.h43
4 files changed, 98 insertions, 1 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index a34da33dc..359cc5492 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -63,6 +63,7 @@
#include "net/tmwa/pethandler.h"
#include "net/tmwa/playerhandler.h"
#include "net/tmwa/protocol.h"
+#include "net/tmwa/searchstorehandler.h"
#include "net/tmwa/serverfeatures.h"
#include "net/tmwa/tradehandler.h"
#include "net/tmwa/skillhandler.h"
@@ -115,7 +116,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[] =
{
@@ -243,6 +245,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mElementalHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
+ mNetwork->registerHandler(mSearchStoreHandler);
}
void GeneralHandler::reload()
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index ed1bc983c..01eda4145 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -93,6 +93,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mElementalHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
+ MessageHandlerPtr mSearchStoreHandler;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/searchstorehandler.cpp b/src/net/tmwa/searchstorehandler.cpp
new file mode 100644
index 000000000..26e35725f
--- /dev/null
+++ b/src/net/tmwa/searchstorehandler.cpp
@@ -0,0 +1,50 @@
+/*
+ * 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/tmwa/searchstorehandler.h"
+
+#include "debug.h"
+
+extern Net::SearchStoreHandler *searchStoreHandler;
+
+namespace TmwAthena
+{
+
+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 TmwAthena
diff --git a/src/net/tmwa/searchstorehandler.h b/src/net/tmwa/searchstorehandler.h
new file mode 100644
index 000000000..f5c00a6c1
--- /dev/null
+++ b/src/net/tmwa/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_TMWA_SEARCHSTOREHANDLER_H
+#define NET_TMWA_SEARCHSTOREHANDLER_H
+
+#include "net/searchstorehandler.h"
+
+#include "net/tmwa/messagehandler.h"
+
+namespace TmwAthena
+{
+class SearchStoreHandler final : public MessageHandler,
+ public Net::SearchStoreHandler
+{
+ public:
+ SearchStoreHandler();
+
+ A_DELETE_COPY(SearchStoreHandler)
+
+ void handleMessage(Net::MessageIn &msg) override final;
+};
+
+} // namespace TmwAthena
+
+#endif // NET_TMWA_SEARCHSTOREHANDLER_H