1
This commit is contained in:
parent
cb202414e2
commit
d69810c96c
@ -1152,7 +1152,16 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
|||||||
|
|
||||||
void RoomMgr::_CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
void RoomMgr::_CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
||||||
{
|
{
|
||||||
|
std::shared_ptr<cs::CMJoin> join_msg = std::make_shared<cs::CMJoin>();
|
||||||
|
*join_msg = msg;
|
||||||
|
auto ip_saddr = hdr->ip_saddr;
|
||||||
|
auto socket_handle = hdr->socket_handle;
|
||||||
|
auto cb =
|
||||||
|
[join_msg, ip_saddr, socket_handle]
|
||||||
|
(int errcode, const std::string errmsg, std::shared_ptr<MobaTeam> p)
|
||||||
|
{
|
||||||
|
};
|
||||||
|
SendGetMobaBattleData(join_msg, cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
||||||
@ -1187,7 +1196,6 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
|||||||
void RoomMgr::SendGetMobaBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
void RoomMgr::SendGetMobaBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||||
std::function<void(int, const std::string, std::shared_ptr<MobaTeam>)> cb)
|
std::function<void(int, const std::string, std::shared_ptr<MobaTeam>)> cb)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RoomMgr::HasTask()
|
bool RoomMgr::HasTask()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user