This commit is contained in:
aozhiwei 2024-03-25 20:49:09 +08:00
parent 2dd720af02
commit 57ff329703
3 changed files with 7 additions and 0 deletions

View File

@ -301,3 +301,8 @@ void CustomBattle::OnEnter(std::shared_ptr<cs::CMJoin> join_msg, long ip_saddr,
RoomMgr::Instance()->ReBindCustomMemberSocket(member);
}
}
void CustomBattle::OnMemberReady(CustomMember* member)
{
}

View File

@ -46,6 +46,7 @@ class CustomBattle
bool IsMoba() { return is_moba_; }
void OnEnter(std::shared_ptr<cs::CMJoin> join_msg, long ip_saddr, int socket_handle,
std::weak_ptr<SocketDisconnectHandler> sd_handler);
void OnMemberReady(CustomMember* member);
private:

View File

@ -23,6 +23,7 @@ bool CustomMember::IsView()
void CustomMember::_CMBattlePreSetReady(f8::MsgHdr* hdr, const cs::CMBattlePreSetReady& msg)
{
is_ready_ = true;
GetTeam()->GetCustomBattle()->OnMemberReady(this);
}
bool CustomMember::IsAndroid()