From 61fe65bf5b4da91155528a49c2b8379091a01e09 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 3 Dec 2020 19:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF=E9=98=9F?= =?UTF-8?q?=E5=88=97=E7=9A=84=E7=B2=92=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global.d.ts | 6 +++++- src/rooms/commands/DiscardCommand.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/global.d.ts b/src/global.d.ts index 5dfee79..169b430 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -67,10 +67,14 @@ declare module "colyseus" { /** * 广播的消息列表 + * 例: + * let datas:IMsg[] = []; + * datas.push({errcode: 0, data: {pid: 1}}); + * this.room.bMsgQueue(datas); * @param datas * @param options */ - bMsgQueue(datas: IMsg[], options: any): void; + bMsgQueue(datas: IMsg[], options?: any): void; } } diff --git a/src/rooms/commands/DiscardCommand.ts b/src/rooms/commands/DiscardCommand.ts index b2325bd..3b6895f 100644 --- a/src/rooms/commands/DiscardCommand.ts +++ b/src/rooms/commands/DiscardCommand.ts @@ -47,7 +47,6 @@ export class DiscardCommand extends Command