summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 21:40:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 21:40:35 +0300
commit09b39a5ea31dedbaff19ba1030f08809f4d61617 (patch)
tree74af9a9692714429a1b2ea3f76818043f021ddb4 /src/net
parent16a57526fbe271bd067cfa4ec44f2da9494bfa1f (diff)
downloadmv-09b39a5ea31dedbaff19ba1030f08809f4d61617.tar.gz
mv-09b39a5ea31dedbaff19ba1030f08809f4d61617.tar.bz2
mv-09b39a5ea31dedbaff19ba1030f08809f4d61617.tar.xz
mv-09b39a5ea31dedbaff19ba1030f08809f4d61617.zip
Add empty map handler.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/generalhandler.cpp3
-rw-r--r--src/net/eathena/generalhandler.h1
-rw-r--r--src/net/net.cpp2
-rw-r--r--src/net/tmwa/generalhandler.cpp3
-rw-r--r--src/net/tmwa/generalhandler.h1
5 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 7ded3aa35..d2acb1863 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -57,6 +57,7 @@
#include "net/eathena/itemhandler.h"
#include "net/eathena/loginhandler.h"
#include "net/eathena/mailhandler.h"
+#include "net/eathena/maphandler.h"
#include "net/eathena/markethandler.h"
#include "net/eathena/mercenaryhandler.h"
#include "net/eathena/network.h"
@@ -117,6 +118,7 @@ GeneralHandler::GeneralHandler() :
mHomunculusHandler(new HomunculusHandler),
mFriendsHandler(new FriendsHandler),
mElementalHandler(new ElementalHandler),
+ mMapHandler(new MarketHandler),
mMarketHandler(new MarketHandler),
mVendingHandler(new VendingHandler),
mSearchStoreHandler(new SearchStoreHandler)
@@ -307,6 +309,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mHomunculusHandler);
mNetwork->registerHandler(mFriendsHandler);
mNetwork->registerHandler(mElementalHandler);
+ mNetwork->registerHandler(mMapHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
mNetwork->registerHandler(mSearchStoreHandler);
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index 892653739..15f8ca9db 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -93,6 +93,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mHomunculusHandler;
MessageHandlerPtr mFriendsHandler;
MessageHandlerPtr mElementalHandler;
+ MessageHandlerPtr mMapHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
MessageHandlerPtr mSearchStoreHandler;
diff --git a/src/net/net.cpp b/src/net/net.cpp
index fe06c4a63..2bb18de39 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -50,6 +50,7 @@ namespace Net
class FriendsHandler;
class HomunculusHandler;
class MailHandler;
+ class MapHandler;
class MarketHandler;
class MercenaryHandler;
class SearchStoreHandler;
@@ -101,6 +102,7 @@ Net::FamilyHandler *familyHandler = nullptr;
Net::FriendsHandler *friendsHandler = nullptr;
Net::HomunculusHandler *homunculusHandler = nullptr;
Net::MailHandler *mailHandler = nullptr;
+Net::MapHandler *mapHandler = nullptr;
Net::MarketHandler *marketHandler = nullptr;
Net::MercenaryHandler *mercenaryHandler = nullptr;
Net::SearchStoreHandler *searchStoreHandler = nullptr;
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 921b30f7a..f18940630 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -55,6 +55,7 @@
#include "net/tmwa/itemhandler.h"
#include "net/tmwa/loginhandler.h"
#include "net/tmwa/mailhandler.h"
+#include "net/tmwa/maphandler.h"
#include "net/tmwa/markethandler.h"
#include "net/tmwa/mercenaryhandler.h"
#include "net/tmwa/network.h"
@@ -115,6 +116,7 @@ GeneralHandler::GeneralHandler() :
mFriendsHandler(new FriendsHandler),
mHomunculusHandler(new HomunculusHandler),
mMailHandler(new MailHandler),
+ mMapHandler(new MarketHandler),
mMarketHandler(new MarketHandler),
mMercenaryHandler(new MercenaryHandler),
mSearchStoreHandler(new SearchStoreHandler),
@@ -247,6 +249,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mFriendsHandler);
mNetwork->registerHandler(mHomunculusHandler);
mNetwork->registerHandler(mMailHandler);
+ mNetwork->registerHandler(mMapHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mMercenaryHandler);
mNetwork->registerHandler(mSearchStoreHandler);
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index aa8c40b1b..c2b0c1651 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -91,6 +91,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mFriendsHandler;
MessageHandlerPtr mHomunculusHandler;
MessageHandlerPtr mMailHandler;
+ MessageHandlerPtr mMapHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mMercenaryHandler;
MessageHandlerPtr mSearchStoreHandler;