From aff32c9c75e76ae65f8a9e3cabb6cce83108a2aa Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 19 Mar 2024 16:33:22 +0800 Subject: [PATCH] 1 --- server/matchserver/team/matchmgr.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/matchserver/team/matchmgr.go b/server/matchserver/team/matchmgr.go index d8894601..c69a3f79 100644 --- a/server/matchserver/team/matchmgr.go +++ b/server/matchserver/team/matchmgr.go @@ -12,6 +12,7 @@ type matchingInfo struct { team *team addTick int64 entry q5.ListHead + matchOk* matchingInfo } type matchMgr struct { @@ -40,6 +41,13 @@ func (this *matchMgr) addMatchingTeam(team *team) { this.mustBeZn(team.GetZnKey()).AddTail(&m.entry) } +func (this *matchMgr) cancelMatching(team *team) { + m := this.getMatchingInfoByUuid(team.GetTeamUuid()) + if m != nil { + + } +} + func (this *matchMgr) getMatchingInfoByUuid(teamUuid string) *matchingInfo { team, ok := this.teamUuidHash[teamUuid] if ok {