增加一个用于统计用的更新pet状态的方法

This commit is contained in:
zhl 2021-01-08 11:11:48 +08:00
parent 4fd5c78e6e
commit da778b5549
2 changed files with 16 additions and 0 deletions

6
src/global.d.ts vendored
View File

@ -216,6 +216,12 @@ declare module "colyseus" {
* @param fromplayer
*/
updatePet(datas: PetInfo[], fromplayer?: string): void;
/**
* ,
* @param datas
* @param fromplayer
*/
updatePetStat(datas: PetInfo[], fromplayer?: string): void;
/**
* room.mainClock设定任务

View File

@ -170,6 +170,16 @@ Object.defineProperties(Room.prototype, {
this.broadcast("pet_update_s2c", {data: [...playerSet]}, {afterNextPatch: true});
}
},
/**
* ,
* @param datas
* @param fromplayer
*/
updatePetStat: {
value: function (datas: PetInfo[], fromplayer?: string): void {
}
},
/**
* n张指定效果id的卡,
* @param effectId