summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-29 14:14:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-29 14:14:52 +0300
commit97db9f1a4f677fe0433b7cad65b5146f5c7c9c00 (patch)
treeabdf94ab8e7e0ee9bec63a12a15d5ea3b5ecb2b6 /src/net/eathena
parentc794c7a20e76d1a005c5f65101ecc93e2c303378 (diff)
downloadplus-97db9f1a4f677fe0433b7cad65b5146f5c7c9c00.tar.gz
plus-97db9f1a4f677fe0433b7cad65b5146f5c7c9c00.tar.bz2
plus-97db9f1a4f677fe0433b7cad65b5146f5c7c9c00.tar.xz
plus-97db9f1a4f677fe0433b7cad65b5146f5c7c9c00.zip
eathena: add packet CMSG_BATTLE_BEGIN_ACK 0x08e0.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/battlegroundhandler.cpp10
-rw-r--r--src/net/eathena/battlegroundhandler.h4
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp
index a876a708e..bc34d351a 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -165,4 +165,14 @@ void BattleGroundHandler::rekoveRequest(const std::string &name) const
outMsg.writeString(name, 24, "bg name");
}
+void BattleGroundHandler::beginAck(const bool result,
+ const std::string &bgName,
+ const std::string &gameName) const
+{
+ createOutPacket(CMSG_BATTLE_BEGIN_ACK);
+ outMsg.writeInt8(static_cast<int8_t>(result ? 1 : 0), "result");
+ outMsg.writeString(bgName, 24, "bg name");
+ outMsg.writeString(gameName, 24, "game name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h
index 1ddf201de..291da2877 100644
--- a/src/net/eathena/battlegroundhandler.h
+++ b/src/net/eathena/battlegroundhandler.h
@@ -44,6 +44,10 @@ class BattleGroundHandler final : public MessageHandler,
void rekoveRequest(const std::string &name) const override final;
+ void beginAck(const bool result,
+ const std::string &bgName,
+ const std::string &gameName) const override final;
+
protected:
void processBattleEmblem(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index ffe418d09..32dc2f829 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -494,6 +494,7 @@
#define CMSG_BATTLE_REGISTER 0x08d7
#define CMSG_BATTLE_REVOKE 0x08da
+#define CMSG_BATTLE_BEGIN_ACK 0x08e0
#define CMSG_CREAYE_CHAT_ROOM 0x00d5
#define CMSG_LEAVE_CHAT_ROOM 0x00e3