diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index ecb227da..fffb9550 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -84,6 +84,7 @@ type Team interface { HandoverLeader(Player, string) CancelMatch() SetMapInfo(*MapInfoRsp) + IsMobaMode() bool } type TeamMgr interface { diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 2a5956f6..87a3f239 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -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)