🐞 fix(gvg): 投石车定时任务
This commit is contained in:
@@ -623,6 +623,10 @@ export class GVGTeamSpineInMap {
|
||||
isMoving: boolean = false;
|
||||
pointId: number = 0;
|
||||
fromAreaId: number = 0;
|
||||
teamCode: string = '';
|
||||
leagueCode: string = '';
|
||||
leagueName: string = '';
|
||||
|
||||
|
||||
constructor(obj: GVGTeamMem, serverNames: {[serverId: string]: string}) {
|
||||
this.spine = obj.spine;
|
||||
@@ -633,6 +637,9 @@ export class GVGTeamSpineInMap {
|
||||
this.isMoving = nowSeconds() < this.stopMoveTime;
|
||||
this.pointId = obj.pointId;
|
||||
this.fromAreaId = obj.fromAreaId;
|
||||
this.teamCode = obj.teamCode;
|
||||
this.leagueCode = obj.leagueCode;
|
||||
this.leagueName = obj.leagueName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -680,6 +687,27 @@ export class GVGTeamInListOnPoint extends GVGTeamInList {
|
||||
}
|
||||
}
|
||||
|
||||
export class MyTeamSimpleInfo {
|
||||
teamCode: string; // 队伍唯一id
|
||||
index: number; // 队伍位置
|
||||
head: number; // 保存头像
|
||||
frame: number; // 保存相框
|
||||
spine: number; // 保存形象
|
||||
lineup: {
|
||||
actorId: number; // 武将
|
||||
dataId: number; // 出兵表上的位置
|
||||
order: number; // 行动
|
||||
}[];
|
||||
|
||||
constructor(team: GVGTeamType) {
|
||||
this.teamCode = team.teamCode;
|
||||
this.index = team.index;
|
||||
this.head = team.head;
|
||||
this.frame = team.spine;
|
||||
this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
|
||||
}
|
||||
}
|
||||
|
||||
// 更新自己队伍时候的比较详细点的数据
|
||||
export class MyTeamInfo {
|
||||
teamCode: string; // 队伍唯一id
|
||||
|
||||
Reference in New Issue
Block a user