1
This commit is contained in:
parent
5d15299b72
commit
cb202414e2
@ -1170,7 +1170,7 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
|||||||
break;
|
break;
|
||||||
case MOBA_ROOM_TYPE:
|
case MOBA_ROOM_TYPE:
|
||||||
{
|
{
|
||||||
|
_CMJoinMoba(hdr, msg);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
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()
|
bool RoomMgr::HasTask()
|
||||||
{
|
{
|
||||||
return !room_hash_.empty();
|
return !room_hash_.empty();
|
||||||
|
@ -25,6 +25,7 @@ class MapService;
|
|||||||
class MapInstance;
|
class MapInstance;
|
||||||
class Building;
|
class Building;
|
||||||
class CustomBattle;
|
class CustomBattle;
|
||||||
|
class MobaTeam;
|
||||||
struct RoomInitInfo
|
struct RoomInitInfo
|
||||||
{
|
{
|
||||||
int room_idx = 0;
|
int room_idx = 0;
|
||||||
@ -124,6 +125,8 @@ class RoomMgr : public a8::Singleton<RoomMgr>
|
|||||||
void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg);
|
void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg);
|
||||||
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||||
std::function<void(int, const std::string, std::shared_ptr<CustomBattle>)> cb);
|
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);
|
void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user