From 0c65af22ea6e9eb260da56f9202981bc229b5ea0 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 17 Dec 2024 13:29:50 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=AF=B9=E5=B1=80=E4=B8=AD=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E4=BA=BA=E6=95=B0=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/clock.go | 5 ++ model/rabbit_mq.go | 7 ++ mq/keyconf.go | 1 + worldsrv/player.go | 5 -- worldsrv/playeronline.go | 36 ++++++++-- worldsrv/playeronlinegame.go | 125 +++++++++++++++++++++++++++++++++++ worldsrv/scene.go | 4 ++ 7 files changed, 174 insertions(+), 9 deletions(-) create mode 100644 worldsrv/playeronlinegame.go diff --git a/common/clock.go b/common/clock.go index 92bf8ec..c46dc37 100644 --- a/common/clock.go +++ b/common/clock.go @@ -250,6 +250,7 @@ func RegisterClockFunc(fs *ClockFunc) { if fs == nil { return } + if fs.OnSecTimerFunc != nil { fs.event = fs.event | 1<= this.robotLimit {