比赛场比赛中列表

This commit is contained in:
sk 2024-08-20 10:44:42 +08:00
parent 15d0d2be78
commit 6153903f31
1 changed files with 15 additions and 0 deletions

View File

@ -220,6 +220,21 @@ func (this *Tournament) GetRemainPlayer(sortId int64) []*MatchPlayerInfo {
robotPlayer := func(n int) {
for _, v := range tm.robotGrades[n] {
if v.copySnid == 0 {
for _, vv := range tm.TmPlayer {
p := PlayerMgrSington.GetPlayerBySnId(vv.SnId)
if p != nil {
ret = append(ret, &MatchPlayerInfo{
SnId: vv.SnId,
RoleId: p.GetRoleId(),
SkinId: p.Skin.ModId,
Grade: v.grade,
})
}
break
}
continue
}
ret = append(ret, &MatchPlayerInfo{
SnId: v.copySnid,
RoleId: v.copyRoleId,