This commit is contained in:
aozhiwei 2023-12-28 15:14:19 +08:00
parent 9bdd7b56dd
commit b96b06413f
2 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ class MobaTeam
{ {
public: public:
std::string GetTeamUuid() { return ""; }
int GetMemberNum(); int GetMemberNum();
void TraverseMember(std::function<bool (std::shared_ptr<MobaMember>)> cb); void TraverseMember(std::function<bool (std::shared_ptr<MobaMember>)> cb);

View File

@ -2294,8 +2294,9 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptr<c
hum->is_valid_battle = m->GetNetData()->is_valid_battle; hum->is_valid_battle = m->GetNetData()->is_valid_battle;
hum->payload = m->GetNetData()->payload; hum->payload = m->GetNetData()->payload;
#if 1 #if 1
//msg.set_session_id(member->GetSessionId()); join_msg.set_account_id(m->GetAccountId());
//msg.set_team_uuid(team->GetTeamUuid()); join_msg.set_session_id(m->GetSessionId());
join_msg.set_team_uuid(m->GetTeam()->GetTeamUuid());
#endif #endif
PlayerMgr::Instance()-> PlayerMgr::Instance()->
CreatePlayerByCMJoin(hum, CreatePlayerByCMJoin(hum,