寻宝助战匹配简单机器人
This commit is contained in:
@@ -34,14 +34,14 @@ export class RoleStatus {
|
||||
// 前五战力
|
||||
@prop({ required: true, default: 0 })
|
||||
topFiveCe: number;
|
||||
// 是否准备
|
||||
@prop({ required: true, default: false })
|
||||
isReady: boolean;
|
||||
// 主公等级
|
||||
@prop({ required: true, default: 1 })
|
||||
lv: number;
|
||||
// 是否机器人
|
||||
@prop({ required: true, default: false })
|
||||
isRobot: boolean;
|
||||
|
||||
constructor(roleId: string, roleName: string, isCap: boolean, isFrd: boolean, headHid: number, sHid: number, topFiveCe: number, lv: number) {
|
||||
constructor(roleId: string, roleName: string, isCap: boolean, isFrd: boolean, headHid: number, sHid: number, topFiveCe: number, lv: number, heroes = [], isRobot = false) {
|
||||
this.roleId = roleId;
|
||||
this.roleName = roleName;
|
||||
this.isCap = isCap;
|
||||
@@ -51,8 +51,9 @@ export class RoleStatus {
|
||||
this.sHid = sHid;
|
||||
this.topFiveCe = topFiveCe;
|
||||
this.lv = lv;
|
||||
this.heroes = [];
|
||||
this.heroes = heroes;
|
||||
this.killed = [];
|
||||
this.isRobot = isRobot;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user