增加一个用于统计用的更新pet状态的方法
This commit is contained in:
parent
4fd5c78e6e
commit
da778b5549
6
src/global.d.ts
vendored
6
src/global.d.ts
vendored
@ -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设定任务
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user