优化:创建武将从util放到game-server的service

This commit is contained in:
陆莹
2022-03-16 20:42:46 +08:00
parent 73e5ec2698
commit 4e110afc70
11 changed files with 439 additions and 428 deletions

View File

@@ -3,7 +3,7 @@ import { WoodenHorse } from "./battleField/guildActivity";
import { RoleUpdate, RoleType } from "../db/Role";
import { reduceCe } from "../pubUtils/util";
import { GuildUpdateParam } from "../db/Guild";
import { HeroType, } from "../db/Hero";
import { HeroUpdate, } from "../db/Hero";
import { getSeconds } from "../pubUtils/timeUtil";
import { prop } from "@typegoose/typegoose";
import { pick } from "underscore";
@@ -119,7 +119,7 @@ export class LineupParam {
@prop({ required: true })
job: number;
constructor(hero: HeroType) {
constructor(hero: HeroUpdate) {
this.hid = hero.hid;
this.skinId = hero.skinId;
this.star = hero.star;