summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.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/tmwa/charserverhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index c5afb012e..487e0bbfc 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -54,68 +54,11 @@ extern ServerInfo mapServer;
extern ServerInfo charServer;
CharServerHandler::CharServerHandler() :
- MessageHandler(),
Ea::CharServerHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_CHAR_LOGIN,
- SMSG_CHAR_LOGIN_ERROR,
- SMSG_CHAR_CREATE_SUCCEEDED,
- SMSG_CHAR_CREATE_FAILED,
- SMSG_CHAR_DELETE_SUCCEEDED,
- SMSG_CHAR_DELETE_FAILED,
- SMSG_CHAR_MAP_INFO,
- SMSG_CHANGE_MAP_SERVER,
- 0
- };
- handledMessages = _messages;
charServerHandler = this;
}
-void CharServerHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("CharServerHandler::handleMessage")
- switch (msg.getId())
- {
- case SMSG_CHAR_LOGIN:
- CharServerRecv::processCharLogin(msg);
- break;
-
- case SMSG_CHAR_LOGIN_ERROR:
- Ea::CharServerRecv::processCharLoginError(msg);
- break;
-
- case SMSG_CHAR_CREATE_SUCCEEDED:
- CharServerRecv::processCharCreate(msg);
- break;
-
- case SMSG_CHAR_CREATE_FAILED:
- Ea::CharServerRecv::processCharCreateFailed(msg);
- break;
-
- case SMSG_CHAR_DELETE_SUCCEEDED:
- Ea::CharServerRecv::processCharDelete(msg);
- break;
-
- case SMSG_CHAR_DELETE_FAILED:
- CharServerRecv::processCharDeleteFailed(msg);
- break;
-
- case SMSG_CHAR_MAP_INFO:
- CharServerRecv::processCharMapInfo(msg);
- break;
-
- case SMSG_CHANGE_MAP_SERVER:
- CharServerRecv::processChangeMapServer(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("CharServerHandler::handleMessage")
-}
-
void CharServerHandler::chooseCharacter(Net::Character *const character)
{
if (!character)