✨ feat(gvg): 添加debug接口
This commit is contained in:
@@ -668,11 +668,14 @@ export class GVGBattleHandler {
|
||||
}
|
||||
|
||||
async debugStartSchedule() {
|
||||
let { countdownTime } = getGVGPeriodData();
|
||||
pinus.app.rpc.guild.guildRemote.setPeriodTime.broadcast(nowSeconds() + GVG.GVG_GUARD_START_TIME, countdownTime);
|
||||
await pinus.app.rpc.systimer.systimerRemote.gvgBattleStartSchedule.broadcast();
|
||||
return resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
async debugEndSchedule() {
|
||||
pinus.app.rpc.guild.guildRemote.resetPeriodTime.broadcast();
|
||||
await pinus.app.rpc.systimer.systimerRemote.gvgBattleEndSchedule.broadcast();
|
||||
return resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user