This commit is contained in:
aozhiwei 2024-03-19 11:35:51 +08:00
parent 29e2eddb28
commit c3808188d0
2 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,7 @@ type Team interface {
HandoverLeader(Player, string)
CancelMatch()
SetMapInfo(*MapInfoRsp)
IsMobaMode() bool
}
type TeamMgr interface {

View File

@ -220,6 +220,10 @@ func (this *team) SetMapInfo(mapInfo *common.MapInfoRsp) {
}
}
func (this* team) IsMobaMode() bool {
return this.mapInfo.IsMoba != 0
}
func (this *team) rearrangementSortIdx() {
members := []common.Player{}
q5.NewSlice(&members, 0, 4)