This commit is contained in:
aozhiwei 2024-07-12 15:34:18 +08:00
parent 1b793f393b
commit 9e04f4c7d0

View File

@ -12,6 +12,7 @@ type matchingInfo struct {
matchTimerWp *f5.TimerWp matchTimerWp *f5.TimerWp
matchOk* matchingInfo matchOk* matchingInfo
matchTick int64 matchTick int64
lastHasOnlinePlayerTick int64
} }
type matchMgr struct { type matchMgr struct {
@ -35,6 +36,7 @@ func (this *matchMgr) addMatch(team *team) {
m := &matchingInfo{} m := &matchingInfo{}
m.team = team m.team = team
m.addTick = q5.GetTickCount() m.addTick = q5.GetTickCount()
m.lastHasOnlinePlayerTick = q5.GetTickCount()
m.entry.Init(m) m.entry.Init(m)
m.matchTimerWp = f5.GetTimer().SetIntervalWp(1000, func (e int32, args* q5.Args) { m.matchTimerWp = f5.GetTimer().SetIntervalWp(1000, func (e int32, args* q5.Args) {
if e == q5.TIMER_EXEC_EVENT { if e == q5.TIMER_EXEC_EVENT {