竞标赛优化
This commit is contained in:
parent
886e026d17
commit
30c1b4414b
@ -103,7 +103,7 @@ func (c *ChampshipMgr) Init() {
|
|||||||
})
|
})
|
||||||
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
|
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
|
||||||
c.Send(&msg.Msg{
|
c.Send(&msg.Msg{
|
||||||
Type: msg.HANDLE_TYPE_CHAMPSHIP_ZERO,
|
Type: msg.SERVER_ZERO_UPDATE,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ func (c *ChampshipMgr) ZeroUpdate(m *msg.Msg) (interface{}, error) {
|
|||||||
c.update = true
|
c.update = true
|
||||||
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
|
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
|
||||||
c.Send(&msg.Msg{
|
c.Send(&msg.Msg{
|
||||||
Type: msg.HANDLE_TYPE_CHAMPSHIP_ZERO,
|
Type: msg.SERVER_ZERO_UPDATE,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
c.mDispatr.AfterFunc(time.Duration(1800)*time.Second, func() {
|
c.mDispatr.AfterFunc(time.Duration(1800)*time.Second, func() {
|
||||||
|
|||||||
@ -144,7 +144,7 @@ func ReqGmCommand(args []interface{}) error {
|
|||||||
|
|
||||||
case "champshipZero":
|
case "champshipZero":
|
||||||
G_GameLogicPtr.ChampshipMgrSend(&MsgMod.Msg{
|
G_GameLogicPtr.ChampshipMgrSend(&MsgMod.Msg{
|
||||||
Type: MsgMod.HANDLE_TYPE_CHAMPSHIP_ZERO,
|
Type: MsgMod.SERVER_ZERO_UPDATE,
|
||||||
})
|
})
|
||||||
case "addMail":
|
case "addMail":
|
||||||
MailMod := player.PlayMod.getMailMod()
|
MailMod := player.PlayMod.getMailMod()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user