diff --git a/game-server/app/servers/systimer/remote/systimerRemote.ts b/game-server/app/servers/systimer/remote/systimerRemote.ts new file mode 100644 index 000000000..9b555865f --- /dev/null +++ b/game-server/app/servers/systimer/remote/systimerRemote.ts @@ -0,0 +1,23 @@ +import { Application, ChannelService } from 'pinus'; +import { resetPvpSeasonTime, setPvpDefResult } from '../../../services/timeTaskService'; +import PvpDefenseType from '../../../db/PvpDefense'; +export default function (app: Application) { + return new SystimerRemote(app); +} + +export class SystimerRemote { + + constructor(private app: Application) { + this.app = app; + this.channelService = app.get('channelService'); + } + private channelService: ChannelService; + + public async resetPvpSeasonTime(day: number) { + return await resetPvpSeasonTime(day); + } + + public async setPvpDefResult(pvpDefense: PvpDefenseType, seasonNum: number, seasonEndTime:number) { + return await setPvpDefResult(pvpDefense, seasonNum, seasonEndTime); + } +}