🐞 fix(gvg): 联军信息变动同步

This commit is contained in:
luying
2023-02-27 21:21:29 +08:00
parent 1f04496865
commit a89692f4ef
11 changed files with 121 additions and 11 deletions

View File

@@ -48,4 +48,11 @@ export class GVGTeamMem extends GVGTeam {
this.startMoveTime = startMoveTime;
this.stopMoveTime = stopMoveTime;
}
public updateInfo(info: { leagueName?: string, roleName?: string, lv?: number }) {
if(!info) return
if(info.leagueName) this.leagueName = info.leagueName;
if(info.roleName) this.roleName = info.roleName;
if(info.lv) this.lv = info.lv;
}
}