diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-29 13:52:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-29 13:52:39 +0300 |
commit | c794c7a20e76d1a005c5f65101ecc93e2c303378 (patch) | |
tree | 85f261e0d4fb139829c8cec1a50127b2c18d138a /src | |
parent | cc19f13863bc331e8e7a34f850370fc3bd32826a (diff) | |
download | manaverse-c794c7a20e76d1a005c5f65101ecc93e2c303378.tar.gz manaverse-c794c7a20e76d1a005c5f65101ecc93e2c303378.tar.bz2 manaverse-c794c7a20e76d1a005c5f65101ecc93e2c303378.tar.xz manaverse-c794c7a20e76d1a005c5f65101ecc93e2c303378.zip |
eathena: add packet CMSG_BATTLE_REVOKE 0x08da.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/battlegroundhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/battlegroundhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/battlegroundhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/battlegroundhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/battlegroundhandler.h | 2 |
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/battlegroundhandler.h b/src/net/battlegroundhandler.h index 11847a8ac..99249543b 100644 --- a/src/net/battlegroundhandler.h +++ b/src/net/battlegroundhandler.h @@ -40,6 +40,8 @@ class BattleGroundHandler notfinal virtual void registerBg(const BattleGroundType::Type &type, const std::string &name) const = 0; + + virtual void rekoveRequest(const std::string &name) const = 0; }; } // namespace Net diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index 91078e141..a876a708e 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -159,4 +159,10 @@ void BattleGroundHandler::registerBg(const BattleGroundType::Type &type, outMsg.writeString(name, 24, "bg name"); } +void BattleGroundHandler::rekoveRequest(const std::string &name) const +{ + createOutPacket(CMSG_BATTLE_REVOKE); + outMsg.writeString(name, 24, "bg name"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index e2be2a1e5..1ddf201de 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -42,6 +42,8 @@ class BattleGroundHandler final : public MessageHandler, void registerBg(const BattleGroundType::Type &type, const std::string &name) const override final; + void rekoveRequest(const std::string &name) const override final; + protected: void processBattleEmblem(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 504689647..ffe418d09 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -493,6 +493,7 @@ #define CMSG_BATTLE_CHAT_MESSAGE 0x02db #define CMSG_BATTLE_REGISTER 0x08d7 +#define CMSG_BATTLE_REVOKE 0x08da #define CMSG_CREAYE_CHAT_ROOM 0x00d5 #define CMSG_LEAVE_CHAT_ROOM 0x00e3 diff --git a/src/net/tmwa/battlegroundhandler.cpp b/src/net/tmwa/battlegroundhandler.cpp index 46c92d81b..5834be174 100644 --- a/src/net/tmwa/battlegroundhandler.cpp +++ b/src/net/tmwa/battlegroundhandler.cpp @@ -48,4 +48,8 @@ void BattleGroundHandler::registerBg(const BattleGroundType::Type &type { } +void BattleGroundHandler::rekoveRequest(const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/battlegroundhandler.h b/src/net/tmwa/battlegroundhandler.h index 4be16d7a5..b393573bc 100644 --- a/src/net/tmwa/battlegroundhandler.h +++ b/src/net/tmwa/battlegroundhandler.h @@ -42,6 +42,8 @@ class BattleGroundHandler final : public MessageHandler, void registerBg(const BattleGroundType::Type &type, const std::string &name) const override final; + + void rekoveRequest(const std::string &name) const override final; }; } // namespace TmwAthena |