diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 23:00:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 23:00:00 +0300 |
commit | 30a8ec57bb01a17f27a25ed9e4d8ec036039ae33 (patch) | |
tree | d61fd7d5c84dfe09679ebe3cf102833d753d2461 /src/net | |
parent | 9743b3341693f71bcaf62a979ec25b249eb0d39b (diff) | |
download | mv-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.gz mv-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.bz2 mv-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.xz mv-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.zip |
eathena: add packet CMSG_PLAYER_VIEW_EQUIPMENT 0x02d6.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.h | 2 |
6 files changed, 20 insertions, 0 deletions
diff --git a/src/net/beinghandler.h b/src/net/beinghandler.h index 56f2579d9..1f988f360 100644 --- a/src/net/beinghandler.h +++ b/src/net/beinghandler.h @@ -43,6 +43,8 @@ class BeingHandler notfinal virtual void undress(Being *const being) const = 0; virtual void requestRanks(const Rank::Rank rank) const = 0; + + virtual void viewPlayerEquipment(const Being *const being) = 0; }; } // namespace Net diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 02ceb0334..76debad6d 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1674,6 +1674,15 @@ void BeingHandler::applyPlayerAction(Being *const being, const uint8_t type) } } +void BeingHandler::viewPlayerEquipment(const Being *const being) +{ + if (!being) + return; + + MessageOut outMsg(CMSG_PLAYER_VIEW_EQUIPMENT); + outMsg.writeInt32(being->getId(), "account id"); +} + void BeingHandler::processSkillGroundNoDamage(Net::MessageIn &msg) const { msg.readInt16("skill id"); diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index 607e42acf..991374d6f 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -95,6 +95,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void applyPlayerAction(Being *const being, const uint8_t type); + void viewPlayerEquipment(const Being *const being) override final; + protected: void processSkillGroundNoDamage(Net::MessageIn &msg) const; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 123db93f8..d1f52f9e2 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -256,6 +256,7 @@ #define CMSG_PLAYER_UNEQUIP 0x00ab #define CMSG_PLAYER_USE_CARD 0x017a #define CMSG_PLAYER_INSERT_CARD 0x017c +#define CMSG_PLAYER_VIEW_EQUIPMENT 0x02d6 #define CMSG_ITEM_PICKUP 0x07e4 #define CMSG_PLAYER_CHANGE_DIR 0x0202 diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index cdc3a59f7..321727e77 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -1557,6 +1557,10 @@ void BeingHandler::applyPlayerAction(Being *const being, const uint8_t type) } } +void BeingHandler::viewPlayerEquipment(const Being *const being A_UNUSED) +{ +} + void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const { BLOCK_START("BeingHandler::processPlayerStop") diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 596d56b47..f6bbcffae 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -45,6 +45,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler void requestRanks(const Rank::Rank rank A_UNUSED) const override final; + void viewPlayerEquipment(const Being *const being) override final; + protected: void processBeingChangeLook(Net::MessageIn &msg) const; |