This commit is contained in:
aozhiwei 2024-03-19 17:29:22 +08:00
parent a90c900453
commit 4f87a87c93
2 changed files with 12 additions and 0 deletions

View File

@ -104,4 +104,10 @@ func (this *matchMgr) execMatch(m *matchingInfo) {
func (this *matchMgr) onMatchOk(m *matchingInfo) { func (this *matchMgr) onMatchOk(m *matchingInfo) {
f5.GetTimer().DeleteRunningTimer() f5.GetTimer().DeleteRunningTimer()
f5.GetTimer().Delete(m.matchOk.matchTimerWp) f5.GetTimer().Delete(m.matchOk.matchTimerWp)
m.team.setMatchOk(m.matchOk.team)
m.matchOk.team.setMatchOk(m.team)
m.team.onMatchOk()
m.matchOk.team.onMatchOk()
} }

View File

@ -119,6 +119,12 @@ func (this *team) IsLock() bool {
return this.Started() || this.Matching() return this.Started() || this.Matching()
} }
func (this *team) setMatchOk(targetM *team) {
}
func (this *team) onMatchOk() {
}
func (this *team) CanStartGame(hum common.Player) bool { func (this *team) CanStartGame(hum common.Player) bool {
if !this.IsLock() { if !this.IsLock() {
if this.GetMemberNum() > 0 { if this.GetMemberNum() > 0 {