This commit is contained in:
aozhiwei 2022-03-22 14:07:44 +08:00
parent 926c4cae7b
commit b75c7cee45
2 changed files with 8 additions and 3 deletions

View File

@ -147,7 +147,12 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
MatchMgr::Instance()->_CMJoin(hdr, msg);
return;
}
std::vector<std::shared_ptr<cs::CMJoin>> join_msgs;
auto cb =
[] (std::vector<std::tuple<int, std::string>>&)
{
};
SendGetBattleData(join_msgs, cb);
}
void RoomMgr::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
@ -706,7 +711,7 @@ void RoomMgr::OnJoinResponse(JoinRequest* req)
#endif
void RoomMgr::SendGetBattleData(std::vector<std::shared_ptr<cs::CMJoin>>& join_msgs,
std::function<void(std::vector<std::tuple<int, std::string>>)> cb)
std::function<void(std::vector<std::tuple<int, std::string>>&)> cb)
{
}

View File

@ -72,7 +72,7 @@ class RoomMgr : public a8::Singleton<RoomMgr>
bool IsGM(const std::string& account_id);
void JoinTeam(MatchTeam* team);
void SendGetBattleData(std::vector<std::shared_ptr<cs::CMJoin>>& join_msgs,
std::function<void(std::vector<std::tuple<int, std::string>>)> cb);
std::function<void(std::vector<std::tuple<int, std::string>>&)> cb);
private:
void InstallReportStateTimer();