IMsg增加消息类型

This commit is contained in:
zhl 2020-12-03 19:51:12 +08:00
parent 61fe65bf5b
commit 0f922bbf52
2 changed files with 2 additions and 1 deletions

2
src/global.d.ts vendored
View File

@ -69,7 +69,7 @@ declare module "colyseus" {
* 广
* :
* let datas:IMsg[] = [];
* datas.push({errcode: 0, data: {pid: 1}});
* datas.push({errcode: 0, type: '消息类型', data: {pid: 1}});
* this.room.bMsgQueue(datas);
* @param datas
* @param options

View File

@ -3,5 +3,6 @@
export interface IMsg {
errcode: number;
errmsg?: string;
type?: string;
data?: any
}