🐞 fix(gvg): 添加确认队伍
This commit is contained in:
@@ -770,14 +770,16 @@ export class MyTeamSimpleInfo {
|
||||
dataId: number; // 出兵表上的位置
|
||||
order: number; // 行动
|
||||
}[];
|
||||
hasConfirm: boolean;
|
||||
|
||||
constructor(team: GVGTeamType) {
|
||||
constructor(team: GVGTeamType, configId: number) {
|
||||
this.teamCode = team.teamCode;
|
||||
this.index = team.index;
|
||||
this.head = team.head;
|
||||
this.frame = team.frame;
|
||||
this.spine = team.spine;
|
||||
this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
|
||||
this.hasConfirm = team.confirmConfigId == configId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user