diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-29 14:21:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-29 14:21:43 +0300 |
commit | 32bf758a1267689cac65e10f69c73b8efa40bb94 (patch) | |
tree | 243fa0514f41877c029bd750c878c212e3eac06e /src/net/eathena | |
parent | 97db9f1a4f677fe0433b7cad65b5146f5c7c9c00 (diff) | |
download | manaverse-32bf758a1267689cac65e10f69c73b8efa40bb94.tar.gz manaverse-32bf758a1267689cac65e10f69c73b8efa40bb94.tar.bz2 manaverse-32bf758a1267689cac65e10f69c73b8efa40bb94.tar.xz manaverse-32bf758a1267689cac65e10f69c73b8efa40bb94.zip |
eathena: add packet CMSG_BATTLE_CHECK_STATE 0x090a.
Diffstat (limited to 'src/net/eathena')
-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 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index bc34d351a..3444c9434 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -175,4 +175,10 @@ void BattleGroundHandler::beginAck(const bool result, outMsg.writeString(gameName, 24, "game name"); } +void BattleGroundHandler::checkState(const std::string &name) const +{ + createOutPacket(CMSG_BATTLE_CHECK_STATE); + outMsg.writeString(name, 24, "bg name"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index 291da2877..233f99e76 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -48,6 +48,8 @@ class BattleGroundHandler final : public MessageHandler, const std::string &bgName, const std::string &gameName) const override final; + void checkState(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 32dc2f829..be9537e3c 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -495,6 +495,7 @@ #define CMSG_BATTLE_REGISTER 0x08d7 #define CMSG_BATTLE_REVOKE 0x08da #define CMSG_BATTLE_BEGIN_ACK 0x08e0 +#define CMSG_BATTLE_CHECK_STATE 0x090a #define CMSG_CREAYE_CHAT_ROOM 0x00d5 #define CMSG_LEAVE_CHAT_ROOM 0x00e3 |