From c3808188d0c73048423d00e37d85ad0f3d3f3627 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 19 Mar 2024 11:35:51 +0800 Subject: [PATCH] 1 --- server/matchserver/common/types.go | 1 + server/matchserver/team/team.go | 4 ++++ 2 files changed, 5 insertions(+) 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)