summaryrefslogtreecommitdiff
path: root/src/net/eathena/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/gamehandler.cpp')
-rw-r--r--src/net/eathena/gamehandler.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index 9b2756058..5cdec491f 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -48,61 +48,11 @@ namespace EAthena
extern ServerInfo mapServer;
GameHandler::GameHandler() :
- MessageHandler(),
Ea::GameHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_MAP_LOGIN_SUCCESS,
- SMSG_SERVER_PING,
- SMSG_WHO_ANSWER,
- SMSG_CHAR_SWITCH_RESPONSE,
- SMSG_MAP_QUIT_RESPONSE,
- SMSG_MAP_ACCOUNT_ID,
- SMSG_MAP_AUTH_REFUSE,
- 0
- };
- handledMessages = _messages;
gameHandler = this;
}
-void GameHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_MAP_LOGIN_SUCCESS:
- GameRecv::processMapLogin(msg);
- break;
-
- case SMSG_SERVER_PING:
- GameRecv::processServerTick(msg);
- break;
-
- case SMSG_WHO_ANSWER:
- Ea::GameRecv::processWhoAnswer(msg);
- break;
-
- case SMSG_CHAR_SWITCH_RESPONSE:
- Ea::GameRecv::processCharSwitchResponse(msg);
- break;
-
- case SMSG_MAP_QUIT_RESPONSE:
- Ea::GameRecv::processMapQuitResponse(msg);
- break;
-
- case SMSG_MAP_ACCOUNT_ID:
- GameRecv::processMapAccountId(msg);
- break;
-
- case SMSG_MAP_AUTH_REFUSE:
- GameRecv::processMapAuthRefuse(msg);
- break;
-
- default:
- break;
- }
-}
-
void GameHandler::mapLoadedEvent() const
{
createOutPacket(CMSG_MAP_LOADED);