定时
This commit is contained in:
23
game-server/app/servers/systimer/remote/systimerRemote.ts
Normal file
23
game-server/app/servers/systimer/remote/systimerRemote.ts
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user