This commit is contained in:
aozhiwei 2023-12-27 15:39:38 +08:00
parent aa9f1fc53a
commit f7ec76e680
2 changed files with 7 additions and 1 deletions

View File

@ -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<cs::CMJoin> join_msg = std::make_shared<cs::CMJoin>();
@ -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();

View File

@ -124,6 +124,7 @@ class RoomMgr : public a8::Singleton<RoomMgr>
void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg);
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function<void(int, const std::string, std::shared_ptr<CustomBattle>)> cb);
void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg);
private:
int current_room_idx_ = 0;