From dddecf22f7e5ab2b1914ef362c194c6a10ef2b01 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 30 Nov 2020 16:50:06 +0800 Subject: [PATCH] 1 --- server/mailman/game2005.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/server/mailman/game2005.go b/server/mailman/game2005.go index 831b595..a8dc187 100644 --- a/server/mailman/game2005.go +++ b/server/mailman/game2005.go @@ -1,9 +1,28 @@ package main +import ( + "q5" + "f5" +) + type Game2005 struct { } func (this *Game2005) Init() { + f5.Timer().AddRepeatTimer(1000 * 10, + func (params* q5.XParams) { + + }, + func (params* q5.XParams) { + this.FetchEventTimerFunc() + }) + f5.Timer().AddFixedTimer(1000 * 10, + func (params* q5.XParams) { + + }, + func (params* q5.XParams) { + this.DailyMailTimerFunc() + }) } func (this *Game2005) UnInit() { @@ -13,3 +32,11 @@ func (this *Game2005) UnInit() { func (this *Game2005) GetGameId() int32 { return 2005 } + +func (this *Game2005) FetchEventTimerFunc() { + +} + +func (this *Game2005) DailyMailTimerFunc() { + +}