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