42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { GVGTeamMem } from "../../domain/battleField/gvgBattle";
|
|
import { GVGLeagueType } from "../../db/GVGLeague";
|
|
import { GVGTeamType } from "../../db/GVGTeam";
|
|
|
|
|
|
/**
|
|
* TODO 检查上周是否有占领城池
|
|
* @param league
|
|
* @returns boolean 是否占领
|
|
*/
|
|
export async function checkHasCities(league: GVGLeagueType) {
|
|
return false
|
|
}
|
|
|
|
/**
|
|
* TODO 获取本联军上周占领的城池
|
|
* @param league
|
|
* @returns number[] 城池id
|
|
*/
|
|
export async function getGVGCities(league: GVGLeagueType) {
|
|
return []
|
|
}
|
|
|
|
/**
|
|
* TODO 获取当前城池状态
|
|
* @returns [{cityId: number, guardLeagueCode: string, guardLeagueName: string, teamCnt: number }]
|
|
*/
|
|
export async function getGVGCitiesInfo(league: GVGLeagueType): Promise<{cityId: number, guardLeagueName: string, teamCnt: number }[]> {
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* 获取内存中队伍的数据结构
|
|
*/
|
|
export function getGVGTeamMemInfo(team: GVGTeamType): GVGTeamMem {
|
|
const teamMem = team as GVGTeamMem;
|
|
teamMem.isMoving = false;
|
|
teamMem.startMoveTime = 0;
|
|
teamMem.stopMoveTime = 0;
|
|
return teamMem;
|
|
}
|