refactor(skill): 调整技能触发枚举的存放位置与使用方式

将SkillTriggerType枚举从GameEvent.ts迁移到heroSet.ts,统一管理技能触发相关配置,同时更新所有引用该枚举的文件路径,优化代码结构与维护性
This commit is contained in:
walkpan
2026-05-24 23:38:09 +08:00
parent 518a9a1ce9
commit fd60191324
10 changed files with 62 additions and 41 deletions

View File

@@ -8,7 +8,8 @@ import { HeroAttrsComp } from "./HeroAttrsComp";
import { HeroViewComp } from "./HeroViewComp";
import { MoveComp } from "./MoveComp";
import { MonMoveComp } from "./MonMoveComp";
import { GameEvent, SkillTriggerType } from "../common/config/GameEvent";
import { GameEvent } from "../common/config/GameEvent";
import { SkillTriggerType } from "../common/config/heroSet";
import { SkillTriggerHelper } from "./SkillTriggerHelper";
/** 怪物实体:负责怪物对象池复用、属性初始化、入场动画与回收 */
@ecs.register(`Monster`)