summaryrefslogtreecommitdiff
path: root/src/net/eathena/maphandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-27 19:30:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-27 19:30:54 +0300
commitd3044d1572e42a28d21590aff4499896cd2e2b92 (patch)
tree63779434eddc63c8260d7702f3a931a9ffb21074 /src/net/eathena/maphandler.cpp
parentc2971f5450a78df4c54b45a8b460280f1b8ffeef (diff)
downloadmanaverse-d3044d1572e42a28d21590aff4499896cd2e2b92.tar.gz
manaverse-d3044d1572e42a28d21590aff4499896cd2e2b92.tar.bz2
manaverse-d3044d1572e42a28d21590aff4499896cd2e2b92.tar.xz
manaverse-d3044d1572e42a28d21590aff4499896cd2e2b92.zip
Move receive code from maphandler into separate file.
Diffstat (limited to 'src/net/eathena/maphandler.cpp')
-rw-r--r--src/net/eathena/maphandler.cpp37
1 files changed, 5 insertions, 32 deletions
diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp
index ee43bcfe0..533307e4d 100644
--- a/src/net/eathena/maphandler.cpp
+++ b/src/net/eathena/maphandler.cpp
@@ -22,6 +22,7 @@
#include "logger.h"
+#include "net/eathena/maprecv.h"
#include "net/eathena/protocol.h"
#include "debug.h"
@@ -51,19 +52,19 @@ void MapHandler::handleMessage(Net::MessageIn &msg)
switch (msg.getId())
{
case SMSG_INSTANCE_START:
- processInstanceStart(msg);
+ MapRecv::processInstanceStart(msg);
break;
case SMSG_INSTANCE_CREATE:
- processInstanceCreate(msg);
+ MapRecv::processInstanceCreate(msg);
break;
case SMSG_INSTANCE_INFO:
- processInstanceInfo(msg);
+ MapRecv::processInstanceInfo(msg);
break;
case SMSG_INSTANCE_DELETE:
- processInstanceDelete(msg);
+ MapRecv::processInstanceDelete(msg);
break;
default:
@@ -71,32 +72,4 @@ void MapHandler::handleMessage(Net::MessageIn &msg)
}
}
-void MapHandler::processInstanceStart(Net::MessageIn &msg)
-{
- UNIMPLIMENTEDPACKET;
- msg.readString(61, "instance name");
- msg.readInt16("flag");
-}
-
-void MapHandler::processInstanceCreate(Net::MessageIn &msg)
-{
- UNIMPLIMENTEDPACKET;
- msg.readInt16("flag");
-}
-
-void MapHandler::processInstanceInfo(Net::MessageIn &msg)
-{
- UNIMPLIMENTEDPACKET;
- msg.readString(61, "instance name");
- msg.readInt32("remaining time");
- msg.readInt32("no players close time");
-}
-
-void MapHandler::processInstanceDelete(Net::MessageIn &msg)
-{
- UNIMPLIMENTEDPACKET;
- msg.readInt32("flag");
- msg.readInt32("unused");
-}
-
} // namespace EAthena