| 123456789101112131415161718192021222324252627 |
- package model
- import (
- "rocommon"
- )
- var (
- updateList []interface{}
- ClientMag *ClientUserManager
- )
- type GateUpdate struct {
- rocommon.UpdateModule //eventqueue.go
- }
- func (this *GateUpdate) Init() {
- //不加到更新列表中,有多线程冲突
- ClientMag = NewClientUserManager()
- }
- func (this *GateUpdate) Update(ms uint64) {
- //对管理器进行更新操作
- for _, data := range updateList {
- data.(rocommon.UpdateLogic).Update(ms)
- }
- }
|