diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 17:24:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 17:24:35 +0300 |
commit | 51b33a512a837cf41b4713e89d1a5bc52a20d8db (patch) | |
tree | 421a585493f729cab95e95744aef647e732c3f75 /src | |
parent | 0a455d7f67e9c3e92b17d00be1602bf7d129a1da (diff) | |
download | mv-51b33a512a837cf41b4713e89d1a5bc52a20d8db.tar.gz mv-51b33a512a837cf41b4713e89d1a5bc52a20d8db.tar.bz2 mv-51b33a512a837cf41b4713e89d1a5bc52a20d8db.tar.xz mv-51b33a512a837cf41b4713e89d1a5bc52a20d8db.zip |
eathena: add packet CMSG_CHANGE_CART 0x01af.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 1 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.h | 2 |
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 1e7b0fd3f..7dd217918 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -252,6 +252,12 @@ void PlayerHandler::removeOption() const MessageOut outMsg(CMSG_REMOVE_OPTION); } +void PlayerHandler::changeCart(const int type) const +{ + MessageOut outMsg(CMSG_CHANGE_CART); + outMsg.writeInt16(type, "type"); +} + void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) { for (int f = 0; f < 27; f ++) diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index d6309f45b..6a95e2091 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -64,6 +64,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler const int id, const int level) const override final; void removeOption() const override final; + void changeCart(const int type) const override final; protected: void processPlayerStatUpdate5(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 0c24b0e1c..cd1b0f60c 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -282,6 +282,7 @@ #define CMSG_MOVE_TO_CART 0x0126 #define CMSG_MOVE_FROM_CART 0x0127 +#define CMSG_CHANGE_CART 0x01af #define CMSG_ADMIN_ANNOUNCE 0x0099 #define CMSG_ADMIN_LOCAL_ANNOUNCE 0x019C diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index 2b23b93b3..0be9c0bf7 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -85,6 +85,8 @@ class PlayerHandler notfinal const int level) const = 0; virtual void removeOption() const = 0; + + virtual void changeCart(const int type) const = 0; }; } // namespace Net diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index c17d5ef6b..8d86a88a7 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -247,6 +247,10 @@ void PlayerHandler::removeOption() const { } +void PlayerHandler::changeCart(const int type) const +{ +} + void PlayerHandler::processOnlineList(Net::MessageIn &msg) { if (!whoIsOnline) diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 9365161ef..46e455b50 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -67,6 +67,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void removeOption() const override final; + void changeCart(const int type) const override final; + protected: void processPlayerStatUpdate5(Net::MessageIn &msg); |