diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index d28cd77d..ed883ad0 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -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 join_msg, + std::function)> cb) +{ + +} + bool RoomMgr::HasTask() { return !room_hash_.empty(); diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index a00280ab..da2ce5c6 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -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 void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg); void SendGetCustomBattleData(std::shared_ptr join_msg, std::function)> cb); + void SendGetMobaBattleData(std::shared_ptr join_msg, + std::function)> cb); void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg); private: