diff options
Diffstat (limited to 'src/net/eathena/mercenaryhandler.cpp')
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index 353777e42..8f6ca2d39 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -35,41 +35,11 @@ extern Net::MercenaryHandler *mercenaryHandler; namespace EAthena { -MercenaryHandler::MercenaryHandler() : - MessageHandler() +MercenaryHandler::MercenaryHandler() { - static const uint16_t _messages[] = - { - SMSG_MERCENARY_UPDATE, - SMSG_MERCENARY_INFO, - SMSG_MERCENARY_SKILLS, - 0 - }; - handledMessages = _messages; mercenaryHandler = this; } -void MercenaryHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_MERCENARY_UPDATE: - MercenaryRecv::processMercenaryUpdate(msg); - break; - - case SMSG_MERCENARY_INFO: - MercenaryRecv::processMercenaryInfo(msg); - break; - - case SMSG_MERCENARY_SKILLS: - MercenaryRecv::processMercenarySkills(msg); - break; - - default: - break; - } -} - void MercenaryHandler::fire() { createOutPacket(CMSG_MERCENARY_ACTION); |