summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
commitbcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch)
tree2e095ec94e99e788eb851a37cdf5eae68270424c /src/net/net.cpp
parent9078373860729cdf80db8d09cbdee478dc54ec64 (diff)
downloadmana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.gz
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.bz2
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.xz
mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.zip
Implement TMWServ's Admin-, Chat-, and MapHandlers
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 2d894119..255b6ab9 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -35,9 +35,15 @@
#include "net/skillhandler.h"
#include "net/tradehandler.h"
+#include "net/tmwserv/adminhandler.h"
+#include "net/tmwserv/chathandler.h"
#include "net/tmwserv/inventoryhandler.h"
+#include "net/tmwserv/maphandler.h"
#include "net/tmwserv/npchandler.h"
+
+#include "net/ea/adminhandler.h"
#include "net/ea/inventoryhandler.h"
+#include "net/ea/maphandler.h"
#include "net/ea/npchandler.h"
#ifdef TMWSERV_SUPPORT
@@ -48,13 +54,15 @@
#include "net/ea/tradehandler.h"
#endif
+extern Net::AdminHandler *adminHandler;
+extern Net::ChatHandler *chatHandler;
extern Net::InventoryHandler *inventoryHandler;
+extern Net::MapHandler *mapHandler;
extern Net::NpcHandler *npcHandler;
Net::AdminHandler *Net::getAdminHandler()
{
- // TODO
- return 0;
+ return adminHandler;
}
Net::CharHandler *Net::getCharHandler()
@@ -65,8 +73,7 @@ Net::CharHandler *Net::getCharHandler()
Net::ChatHandler *Net::getChatHandler()
{
- // TODO
- return 0;
+ return chatHandler;
}
Net::GeneralHandler *Net::getGeneralHandler()
@@ -94,8 +101,7 @@ Net::LoginHandler *Net::getLoginHandler()
Net::MapHandler *Net::getMapHandler()
{
- // TODO
- return 0;
+ return mapHandler;
}
Net::NpcHandler *Net::getNpcHandler()