🐞 fix(gvg): 守城顺序&投石车数据

This commit is contained in:
luying
2023-02-28 21:12:32 +08:00
parent 074615affd
commit 6afc62d052
5 changed files with 71 additions and 51 deletions

View File

@@ -648,6 +648,7 @@ export class GVGCityMapInfo {
export class GVGTeamSpineInMap {
spine: number = 0;
roleId: string = '';
roleName: string = '';
serverName: string = '';
startMoveTime: number = 0;
@@ -664,6 +665,7 @@ export class GVGTeamSpineInMap {
constructor(obj: GVGTeamMem, serverNames: {[serverId: string]: string}) {
this.spine = obj.spine;
this.roleId = obj.roleId;
this.roleName = obj.roleName;
if(obj.serverId) this.serverName = serverNames[obj.serverId];
this.startMoveTime = obj.startMoveTime;
@@ -697,6 +699,8 @@ export class GVGTeamInList {
leagueName: string;
durability: number; // 耐久
maxDurability: number; // 最大耐久
restartTime: number;
curTeamBreak: boolean;
constructor(team: GVGTeamType) {
if(!team) return;
@@ -711,6 +715,8 @@ export class GVGTeamInList {
this.leagueName = team.leagueName;
this.durability = team.durability;
this.maxDurability = team.maxDurability;
this.restartTime = team.restartTime;
this.curTeamBreak = !!team.curTeamBreak;
}
}