IMsg增加消息类型
This commit is contained in:
parent
61fe65bf5b
commit
0f922bbf52
2
src/global.d.ts
vendored
2
src/global.d.ts
vendored
@ -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
|
||||
|
@ -3,5 +3,6 @@
|
||||
export interface IMsg {
|
||||
errcode: number;
|
||||
errmsg?: string;
|
||||
type?: string;
|
||||
data?: any
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user