From 9dcf5dc24e2673f6668b52971b22b7ea8b000dc4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 19 Sep 2023 15:49:04 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 7 +++++++ server/gameserver/roommgr.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index df186a52..a3b11be4 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -840,3 +840,10 @@ std::shared_ptr RoomMgr::GetHisCustomRoom(const std::string& room_ auto itr = his_custom_room_hash_.find(room_uuid); return itr != his_custom_room_hash_.end() ? itr->second : nullptr; } + +void RoomMgr::SendGetCustomBattleData(std::shared_ptr join_msg, + std::function< + void(std::vector>&)> cb) +{ + +} diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index 079615b1..785db14a 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -118,6 +118,9 @@ class RoomMgr : public a8::Singleton void AdjustCMJoin(cs::CMJoin* msg); std::shared_ptr GetCustomRoom(const std::string& room_uuid); std::shared_ptr GetHisCustomRoom(const std::string& room_uuid); + void SendGetCustomBattleData(std::shared_ptr join_msg, + std::function< + void(std::vector>&)> cb); private: int current_room_idx_ = 0;