summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/battlegroundhandler.cpp')
-rw-r--r--src/net/eathena/battlegroundhandler.cpp10
1 files changed, 10 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