diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-02 00:37:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:55 +0300 |
commit | b0de595b642a359fabd0824372c89b51fc3968d5 (patch) | |
tree | b27b2004a03803e63156a5160a736b64fabebd32 /src/net | |
parent | e06b40ddbe807020221c2af3b3cf5b305aa6a5eb (diff) | |
download | manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.gz manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.bz2 manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.xz manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.zip |
eathena: impliment packet SMSG_PARTY_INVITATION_STATS 0x02c9.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/partyhandler.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index 2c4fa63e4..e2256f5eb 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -55,6 +55,7 @@ PartyHandler::PartyHandler() : SMSG_PARTY_UPDATE_HP, SMSG_PARTY_UPDATE_COORDS, SMSG_PARTY_MESSAGE, + SMSG_PARTY_INVITATION_STATS, 0 }; handledMessages = _messages; @@ -99,6 +100,9 @@ void PartyHandler::handleMessage(Net::MessageIn &msg) case SMSG_PARTY_MESSAGE: processPartyMessage(msg); break; + case SMSG_PARTY_INVITATION_STATS: + processPartyInvitationStats(msg); + break; default: break; @@ -204,4 +208,9 @@ void PartyHandler::setShareItems(const Net::PartyShare::Type share) const outMsg.writeInt16(static_cast<int16_t>(share)); } +void PartyHandler::processPartyInvitationStats(Net::MessageIn &msg) +{ + msg.readUInt8("allow party"); +} + } // namespace EAthena diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h index e80c1ed71..47de4a73a 100644 --- a/src/net/eathena/partyhandler.h +++ b/src/net/eathena/partyhandler.h @@ -62,6 +62,9 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void setShareItems(const Net::PartyShare::Type share) const override final; + + protected: + void processPartyInvitationStats(Net::MessageIn &msg); }; } // namespace EAthena |