寻宝助战匹配简单机器人

This commit is contained in:
liangtongchuan
2020-11-27 23:27:35 +08:00
parent 369c831846
commit 3e499de1bc
8 changed files with 159 additions and 23 deletions

View File

@@ -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;
}
}