feat(gvg): 添加红点

This commit is contained in:
luying
2023-02-18 22:19:00 +08:00
parent 4b73763e27
commit bfaaba13e0
5 changed files with 112 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import { RoleType } from "../../db/Role";
import { GVGLeagueType } from "../../db/GVGLeague";
import { GVGLeaguePrepareType } from "../../db/GVGLeaguePrepare";
import { GVGLeaguePrepareType, Tech } from "../../db/GVGLeaguePrepare";
import { GVGUserDataType } from "../../db/GVGUserData";
import { GuildType } from "../../db/Guild";
import { GVGLeagueFarmType } from "../../db/GVGLeagueFarm";
@@ -82,9 +82,11 @@ export class GVGMainData {
// 内政相关
resources: LeagueResource = new LeagueResource(); // 联盟的物资
activeTech: number[] = []; // 已激活了的科技树的id
techQueue: Tech[];
maxMemberCnt: number; // 进入备战期总玩家人数
producerCnt: number; // 贤臣人数
fighterCnt: number; // 猛将人数
constribute: LeagueContributeInfo[];
sumTime: number = 0; // 今日贡献结算时间 10位时间戳
@@ -147,6 +149,14 @@ export class GVGMainData {
setCities(cities: number[]) {
this.cities = cities;
}
setTechQueue(techQueue: Tech[]) {
this.techQueue = techQueue;
}
setConstribute(constribute: LeagueContributeInfo[]) {
this.constribute = constribute;
}
}
export class LeagueListInfo {