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

@@ -79,12 +79,3 @@ export enum GameEvent {
RemoveSkillBox = "RemoveSkillBox", // 技能盒销毁事件
}
/** 触发技能类型枚举 */
export enum SkillTriggerType {
Call = 'call', // 召唤时触发
Dead = 'dead', // 死亡时触发
FStart = 'fstart', // 战斗开始时触发
FEnd = 'fend', // 战斗结束时触发
Atking = 'atking', // 攻击时触发
Atked = 'atked' // 受击时触发
}