72 lines
1.6 KiB
TypeScript
72 lines
1.6 KiB
TypeScript
import { Application, BackendSession, ChannelService, HandlerService } from "pinus";
|
|
|
|
export default function (app: Application) {
|
|
new HandlerService(app, {});
|
|
return new GVGBattleHandler(app);
|
|
}
|
|
|
|
export class GVGBattleHandler {
|
|
channelService: ChannelService;
|
|
constructor(private app: Application) {
|
|
this.channelService = app.get('channelService');
|
|
}
|
|
|
|
// 获取城池信息
|
|
async getCity(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 进入城池
|
|
async enterCity(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 离开城池
|
|
async leaveCity(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 开始移动
|
|
async startMove(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 停止移动
|
|
async stopMove(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 队伍入驻积分点
|
|
async teamSettle(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 队伍离开积分点
|
|
async teamLeave(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 队伍开始攻击
|
|
async battleStart(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 队伍停止攻击
|
|
async battleEnd(msg: any, session: BackendSession) {
|
|
|
|
}
|
|
|
|
// 使用道具
|
|
async useItem(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 复活队伍
|
|
async reviveTeam(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 获取战报
|
|
async getRecs(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 获取概况
|
|
async getOverview(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
// 获取区域上的队伍
|
|
async getAreaTeams(msg: any, session: BackendSession) {
|
|
}
|
|
|
|
}
|