From f7ec76e680cbe75ce11c4033b5e05cda45a71a4c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 27 Dec 2023 15:39:38 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 7 ++++++- server/gameserver/roommgr.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 751d3de4..bf2e33b3 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -141,7 +141,7 @@ void RoomMgr::_CMJoin(f8::MsgHdr* hdr, const cs::CMJoin& msg) return; } if (!msg.payload_data().empty()) { - _CMJoinCustomBattle(hdr, msg); + DispatchSpecRoom(hdr, msg); return; } std::shared_ptr join_msg = std::make_shared(); @@ -1153,6 +1153,11 @@ void RoomMgr::_CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg) } +void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg) +{ + +} + bool RoomMgr::HasTask() { return !room_hash_.empty(); diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index 55c91548..a00280ab 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -124,6 +124,7 @@ class RoomMgr : public a8::Singleton void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg); void SendGetCustomBattleData(std::shared_ptr join_msg, std::function)> cb); + void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg); private: int current_room_idx_ = 0;