feat(gvg): 玩家驻扎排行榜

This commit is contained in:
luying
2023-02-17 10:58:45 +08:00
parent 92191cbcca
commit fc2a86ad81
16 changed files with 190 additions and 61 deletions
+40
View File
@@ -10,6 +10,7 @@ import { EXTERIOR, GVG } from "../../pubUtils/dicParam";
import { DicWarJson } from "../../pubUtils/dictionary/DicWarJson";
import { gameData } from "../../pubUtils/data";
import { HeroType } from "../../db/Hero";
import { RoleRankInfo } from "../rank";
class LeagueLeaderInfo {
name: string; // 盟主名
@@ -520,4 +521,43 @@ export class GVGVestigeOppLineup {
this.heroes.push(obj);
}
}
}
export class VestigeRank {
rank: number;
roleId: string;
roleName: string;
guildName: string;
serverName: string;
lv: number;
head: number;
frame: number;
lineupCe: number;
score: number;
setByRankParam(obj: RoleRankInfo, serverName: string, lineupCe: number, score: number) {
this.rank = obj.rank;
this.roleId = obj.roleId;
this.roleName = obj.roleName;
this.guildName = obj.guildName;
this.serverName = serverName;
this.lv = obj.lv;
this.head = obj.head;
this.frame = obj.frame;
this.lineupCe = lineupCe;
this.score = score;
}
setByRole(role: RoleType, serverName: string) {
this.rank = 0;
this.roleId = role.roleId;
this.roleName = role.roleName;
this.guildName = role.guildName;
this.serverName = serverName;
this.lv = role.lv;
this.head = role.head;
this.frame = role.frame;
this.lineupCe = 0;
this.score = 0;
}
}