1
This commit is contained in:
parent
29e2eddb28
commit
c3808188d0
@ -84,6 +84,7 @@ type Team interface {
|
||||
HandoverLeader(Player, string)
|
||||
CancelMatch()
|
||||
SetMapInfo(*MapInfoRsp)
|
||||
IsMobaMode() bool
|
||||
}
|
||||
|
||||
type TeamMgr interface {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user