From 0a05ed9ba14bd80d6244c10fc9e9fad42ec0b8db Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 30 Apr 2021 16:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=A2=9E=E5=8A=A0=E6=88=BF?= =?UTF-8?q?=E9=97=B4id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/PuzzleMathRoom.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rooms/PuzzleMathRoom.ts b/src/rooms/PuzzleMathRoom.ts index 1bb3161..0811ced 100644 --- a/src/rooms/PuzzleMathRoom.ts +++ b/src/rooms/PuzzleMathRoom.ts @@ -124,7 +124,7 @@ export class PuzzleMathRoom extends Room { * 开始游戏 */ beginGame() { - console.log(`admin send begin game cmd`) + console.log(`[${this.roomId}] admin send begin game cmd`) this.dispatcher.dispatch(new BeginGameCommand() ) } @@ -132,12 +132,12 @@ export class PuzzleMathRoom extends Room { * 游戏结束 */ endGame() { - console.log(`admin send end game cmd`) + console.log(`[${this.roomId}] admin send end game cmd`) this.dispatcher.dispatch(new EndGameCommand() ) } updateScore(datas: any) { - console.log(`admin updateScore: ${JSON.stringify(datas)}`) + console.log(`[${this.roomId}] admin updateScore: ${JSON.stringify(datas)}`) for (let data of datas) { for (let [,player] of this.state.players) { if (player.accountId == data.accountid) { @@ -153,6 +153,7 @@ export class PuzzleMathRoom extends Room { * @param {number} round */ updateRound(round: number) { + console.log(`[${this.roomId}] admin update round: ${round}`) this.state.round = round }