皮肤:周边相关功能影响

This commit is contained in:
luying
2021-10-19 14:24:05 +08:00
parent da5a43abba
commit 864f856c1c
16 changed files with 254 additions and 199 deletions

View File

@@ -7,6 +7,7 @@ import { EXTERIOR } from "../../pubUtils/dicParam";
export class PlayerDetailHero {
actorId: number;
skinId: number;
lv: number;
star: number;
colorStar: number;
@@ -15,6 +16,7 @@ export class PlayerDetailHero {
setPvpHeroInfo?(hero: PvpEnemies|PvpOtherHeroes) {
this.actorId = hero.actorId;
this.skinId = hero.skinId;
this.lv = hero.lv;
this.star = hero.star;
this.colorStar = hero.colorStar;

View File

@@ -7,6 +7,8 @@ import { nowSeconds } from '../pubUtils/timeUtil';
export class PvpHeroInfo {
@prop({ required: true })
actorId?: number = 0; // 敌人id
@prop({ required: true })
skinId?: number = 0; // 时装idfashions表的heroId字段
@prop({ required: false })
actorName?: string = ""; // 敌人名
@prop({ required: false })
@@ -31,6 +33,7 @@ export class PvpHeroInfo {
setHeroInfo(hero: HeroType) {
this.actorId = hero.hid;
this.skinId = hero.skinId;
this.actorName = hero.hName;
this.star = hero.star;
this.lv = hero.lv;
@@ -40,6 +43,7 @@ export class PvpHeroInfo {
setRobotInfo(warjson: DicWarJson, lv: number, initialStar: number, quality: number) {
this.actorId = warjson.actorId;
this.skinId = warjson.actorId;
this.actorName = warjson.actorName;
this.star = initialStar;
this.lv = lv;
@@ -60,6 +64,8 @@ export class Enemies extends PvpHeroInfo {
@prop({ required: true })
actorId: number; // 敌人id
@prop({ required: false })
skinId: number; // 皮肤idfashions表的heroId
@prop({ required: false })
actorName: string; // 敌人名
@prop({ required: false })
dataId: number; // 战场中唯一指向武将的代码
@@ -85,6 +91,7 @@ export class Enemies extends PvpHeroInfo {
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, ce: number) {
super();
this.actorId = heroInfo.actorId != undefined ? heroInfo.actorId : warjson.actorId;
this.skinId = heroInfo.skinId != undefined ? heroInfo.skinId: warjson.actorId;
this.actorName = heroInfo.actorName != undefined ? heroInfo.actorName : warjson.actorName;
this.dataId = warjson.dataId;
this.relation = warjson.relation;