增加消息队列的粒子

This commit is contained in:
zhl 2020-12-03 19:35:10 +08:00
parent b6b67d5d38
commit 61fe65bf5b
2 changed files with 5 additions and 2 deletions

6
src/global.d.ts vendored
View File

@ -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;
}
}

View File

@ -47,7 +47,6 @@ export class DiscardCommand extends Command<CardGameState, { client: Client, car
* ,
*
*/
if (cards.length === 1) {
return [new NextSubCommand()];
} else {