This commit is contained in:
aozhiwei 2023-09-19 15:49:04 +08:00
parent 4298989287
commit 9dcf5dc24e
2 changed files with 10 additions and 0 deletions

View File

@ -840,3 +840,10 @@ std::shared_ptr<CustomBattle> RoomMgr::GetHisCustomRoom(const std::string& room_
auto itr = his_custom_room_hash_.find(room_uuid); auto itr = his_custom_room_hash_.find(room_uuid);
return itr != his_custom_room_hash_.end() ? itr->second : nullptr; return itr != his_custom_room_hash_.end() ? itr->second : nullptr;
} }
void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function<
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb)
{
}

View File

@ -118,6 +118,9 @@ class RoomMgr : public a8::Singleton<RoomMgr>
void AdjustCMJoin(cs::CMJoin* msg); void AdjustCMJoin(cs::CMJoin* msg);
std::shared_ptr<CustomBattle> GetCustomRoom(const std::string& room_uuid); std::shared_ptr<CustomBattle> GetCustomRoom(const std::string& room_uuid);
std::shared_ptr<CustomBattle> GetHisCustomRoom(const std::string& room_uuid); std::shared_ptr<CustomBattle> GetHisCustomRoom(const std::string& room_uuid);
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function<
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb);
private: private:
int current_room_idx_ = 0; int current_room_idx_ = 0;