增加消息队列的粒子
This commit is contained in:
parent
b6b67d5d38
commit
61fe65bf5b
6
src/global.d.ts
vendored
6
src/global.d.ts
vendored
@ -67,10 +67,14 @@ declare module "colyseus" {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 广播的消息列表
|
* 广播的消息列表
|
||||||
|
* 例:
|
||||||
|
* let datas:IMsg[] = [];
|
||||||
|
* datas.push({errcode: 0, data: {pid: 1}});
|
||||||
|
* this.room.bMsgQueue(datas);
|
||||||
* @param datas
|
* @param datas
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
bMsgQueue(datas: IMsg[], options: any): void;
|
bMsgQueue(datas: IMsg[], options?: any): void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,6 @@ export class DiscardCommand extends Command<CardGameState, { client: Client, car
|
|||||||
* 如果出一张牌的话, 进入胡牌轮
|
* 如果出一张牌的话, 进入胡牌轮
|
||||||
* 否则直接进入选随从轮
|
* 否则直接进入选随从轮
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (cards.length === 1) {
|
if (cards.length === 1) {
|
||||||
return [new NextSubCommand()];
|
return [new NextSubCommand()];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user