去掉了 技能系统,技能由单个精灵独立处理

This commit is contained in:
panfudan
2025-06-02 20:25:23 +08:00
parent c9a499e38b
commit 3fbfc2ea09
68 changed files with 3923 additions and 11907 deletions

View File

@@ -7,6 +7,7 @@ import { BoxSet } from "../common/config/BoxSet";
import { HeroInfo } from "../common/config/heroSet";
import { MonModelComp } from "./MonModelComp";
import { BattleMoveComp } from "../common/ecs/position/BattleMoveComp";
import { SkillConComp } from "./SkillConComp";
/** 角色实体 */
@ecs.register(`Monster`)
export class Monster extends ecs.Entity {
@@ -17,12 +18,13 @@ export class Monster extends ecs.Entity {
protected init() {
this.addComponents<ecs.Comp>(
BattleMoveComp,
MonModelComp
MonModelComp,
);
}
destroy(): void {
this.remove(HeroViewComp);
this.remove(MonModelComp);
super.destroy();
}
@@ -67,8 +69,6 @@ export class Monster extends ecs.Entity {
hv.cd = hero.a_cd
hv.atk_skill=hero.skills[0]
this.add(hv);
}
}