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;