summaryrefslogtreecommitdiff
path: root/src/net/eathena/maphandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/maphandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmanaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/maphandler.cpp')
-rw-r--r--src/net/eathena/maphandler.cpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp
index 082bb5f3f..0616e3e1f 100644
--- a/src/net/eathena/maphandler.cpp
+++ b/src/net/eathena/maphandler.cpp
@@ -30,44 +30,9 @@ extern Net::MapHandler *mapHandler;
namespace EAthena
{
-MapHandler::MapHandler() :
- MessageHandler()
+MapHandler::MapHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_INSTANCE_START,
- SMSG_INSTANCE_CREATE,
- SMSG_INSTANCE_INFO,
- SMSG_INSTANCE_DELETE,
- 0
- };
- handledMessages = _messages;
mapHandler = this;
}
-void MapHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_INSTANCE_START:
- MapRecv::processInstanceStart(msg);
- break;
-
- case SMSG_INSTANCE_CREATE:
- MapRecv::processInstanceCreate(msg);
- break;
-
- case SMSG_INSTANCE_INFO:
- MapRecv::processInstanceInfo(msg);
- break;
-
- case SMSG_INSTANCE_DELETE:
- MapRecv::processInstanceDelete(msg);
- break;
-
- default:
- break;
- }
-}
-
} // namespace EAthena