6
This commit is contained in:
parent
b25a10f2fe
commit
68c8cfe620
@ -102,9 +102,11 @@ func (c *ChampshipMgr) Init() {
|
||||
})
|
||||
}
|
||||
|
||||
func (c *ChampshipMgr) NotifyAll(m *msg.Msg) (interface{}, error) {
|
||||
m.HandleType = msg.HANDLE_MOD_PLAYER_MSG
|
||||
NotifyAllPlayerMsg(m)
|
||||
func (c *ChampshipMgr) NotifyAll() (interface{}, error) {
|
||||
NotifyAllPlayerMsg(&msg.Msg{
|
||||
Type: msg.HANDLE_TYPE_CHAMPSHIP_NOTIFY,
|
||||
HandleType: msg.HANDLE_MOD_PLAYER_MSG,
|
||||
})
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@ -121,13 +123,11 @@ func (c *ChampshipMgr) ZeroUpdate() (interface{}, error) {
|
||||
c.getData().GroupInfo = make(map[int]int, 0)
|
||||
c.update = true
|
||||
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
|
||||
c.Send(&msg.Msg{
|
||||
Type: msg.SERVER_ZERO_UPDATE,
|
||||
})
|
||||
c.ZeroUpdate()
|
||||
})
|
||||
c.NotifyPlayer()
|
||||
c.mDispatr.AfterFunc(time.Duration(1800)*time.Second, func() {
|
||||
c.ZeroUpdate()
|
||||
c.NotifyAll()
|
||||
})
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user