diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:46:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:46:08 +0300 |
commit | 83aea63d85e093ad50fc87abc16e87d57b74d423 (patch) | |
tree | 58e4373e0acbb6ba200c3cd9101eadb1c90671df /src/net/eathena/battlegroundhandler.cpp | |
parent | b85ff796a484137998fa2c87d5e10f9dcb2c006f (diff) | |
download | manaplus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.gz manaplus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.bz2 manaplus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.xz manaplus-83aea63d85e093ad50fc87abc16e87d57b74d423.zip |
eathena: add partial support for packet SMSG_BATTLE_EMBLEM 0x02dd.
Diffstat (limited to 'src/net/eathena/battlegroundhandler.cpp')
-rw-r--r-- | src/net/eathena/battlegroundhandler.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index 9aa535c23..10555f85f 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -20,6 +20,8 @@ #include "net/eathena/battlegroundhandler.h" +#include "logger.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -35,6 +37,7 @@ BattleGroundHandler::BattleGroundHandler() : { static const uint16_t _messages[] = { + SMSG_BATTLE_EMBLEM, 0 }; handledMessages = _messages; @@ -45,9 +48,21 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_BATTLE_EMBLEM: + processBattleEmblem(msg); + break; + default: break; } } +void BattleGroundHandler::processBattleEmblem(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("account id"); + msg.readString(24, "name"); + msg.readInt16("camp"); +} + } // namespace EAthena |