This commit is contained in:
aozhiwei 2023-12-27 17:00:35 +08:00
parent 5d15299b72
commit cb202414e2
2 changed files with 10 additions and 1 deletions

View File

@ -1170,7 +1170,7 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
break;
case MOBA_ROOM_TYPE:
{
_CMJoinMoba(hdr, msg);
}
break;
default:
@ -1184,6 +1184,12 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
}
}
void RoomMgr::SendGetMobaBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function<void(int, const std::string, std::shared_ptr<MobaTeam>)> cb)
{
}
bool RoomMgr::HasTask()
{
return !room_hash_.empty();

View File

@ -25,6 +25,7 @@ class MapService;
class MapInstance;
class Building;
class CustomBattle;
class MobaTeam;
struct RoomInitInfo
{
int room_idx = 0;
@ -124,6 +125,8 @@ 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 SendGetMobaBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function<void(int, const std::string, std::shared_ptr<MobaTeam>)> cb);
void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg);
private: