🐞 fix(gvg): 修复队伍进出城池内存更新
This commit is contained in:
@@ -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; // 是否有队伍占领
|
||||
|
||||
Reference in New Issue
Block a user