增加回调
This commit is contained in:
parent
d4996d97c7
commit
e13f2730d5
@ -438,6 +438,12 @@ export class BattleHandler {
|
||||
return ph? ph.getTransEffCardRate(): 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* 替换随从操作
|
||||
* @param playerid
|
||||
* @param petpos
|
||||
* @param petid
|
||||
*/
|
||||
public replacePet(playerid: string, petpos: number, petid: string){
|
||||
|
||||
};
|
||||
@ -543,6 +549,19 @@ export class BattleHandler {
|
||||
this.delPlayer(aplayer);
|
||||
};
|
||||
|
||||
/**
|
||||
* 一局游戏开始
|
||||
*/
|
||||
public onGameStart(){
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* 一局游戏结束
|
||||
*/
|
||||
public onGameEnd(){
|
||||
|
||||
};
|
||||
// end--------------------------------------------------
|
||||
|
||||
|
||||
@ -555,6 +574,10 @@ export class BattleHandler {
|
||||
return this._room.bRemovePet(apet.exportRemoveMsg());
|
||||
};
|
||||
|
||||
public onAskReplacePetNotify(aplayer: PlayerHandler){
|
||||
return this._room.sNeedChangePet(aplayer.getId());
|
||||
};
|
||||
|
||||
public onUpdatePetNotify(apet: PetHandler){
|
||||
return this._room.updatePet([apet.exportInfo()]);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user