From 18daa5b07444e85fad38e17e6465939de2cd048f Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 11 Dec 2020 17:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E5=88=9B=E5=BB=BA=E6=97=B6,?= =?UTF-8?q?=20=E5=88=9D=E5=A7=8B=E5=8C=96mainClock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/GeneralRoom.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rooms/GeneralRoom.ts b/src/rooms/GeneralRoom.ts index d8ab665..fbbcd82 100644 --- a/src/rooms/GeneralRoom.ts +++ b/src/rooms/GeneralRoom.ts @@ -40,6 +40,9 @@ export class GeneralRoom extends Room { this.battleMan.init(cs, this); this.clock.start(); this.state.gameSate = 0; + this.beginSchedule(1, function (){ + debugRoom('init main clock'); + }, 'init') this.onMessage("play_ready_c2s", (client, message) => { msgLog('play_ready from ', client.sessionId, message); this.dispatcher.dispatch(new PlayReadyCommand(), {client});