🐞 fix(gvg): 修复队伍进出城池内存更新

This commit is contained in:
luying
2023-02-23 17:50:50 +08:00
parent 7300efd263
commit c3d86076ec
9 changed files with 324 additions and 216 deletions

View File

@@ -698,6 +698,26 @@ export class GVGTeamInList {
}
}
// 地图右边列表上的队伍信息
export class GVGAttackSpine {
teamCode: string; // 队伍唯一id
durability: number; // 耐久
maxDurability: number; // 最大耐久
hurt: number; // 投石车造成的伤害
pointId: number; // 可能会被打下积分点
areaId: number; // 被打到哪个区域
constructor(team: GVGTeamType, hurt: number) {
if(!team) return;
this.teamCode = team.teamCode;
this.durability = team.durability;
this.maxDurability = team.maxDurability;
this.pointId = team.pointId;
this.areaId = team.areaId;
this.hurt = hurt;
}
}
export class GVGTeamInListOnPoint extends GVGTeamInList {
pointId: number; // 积分点
hasTeam: boolean; // 是否有队伍占领