refactor(hero): 移除SkillConComp并添加ECS系统注册装饰器

- 删除废弃的SkillConComp组件及其meta文件
- 为HeroAtkSystem、HeroAttrSystem等系统添加@ecs.register装饰器
- 在生命周期系统中添加空安全检查
- 移除SkillConComp相关引用及调试日志
- 在移动系统中添加节点有效性检查
This commit is contained in:
panw
2025-10-30 16:31:44 +08:00
parent 7984f8b784
commit 40e0086be3
10 changed files with 64 additions and 210 deletions

View File

@@ -52,7 +52,6 @@ export class SkillCastSystem extends ecs.ComblockSystem implements ecs.IEntityEn
* 过滤器:拥有技能数据 + 施法请求的实体
*/
filter(): ecs.IMatcher {
console.log("[SkillCastSystem] filter");
return ecs.allOf(HeroSkillsComp, HeroAttrsComp, CastSkillRequestComp);
}
@@ -187,7 +186,6 @@ export class SkillCastSystem extends ecs.ComblockSystem implements ecs.IEntityEn
export class SkillCDSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate {
filter(): ecs.IMatcher {
console.log("[SkillCDSystem] filter");
return ecs.allOf(HeroSkillsComp);
}
@@ -218,7 +216,6 @@ export class SkillCDSystem extends ecs.ComblockSystem implements ecs.ISystemUpda
export class SkillAutocastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate {
filter(): ecs.IMatcher {
console.log("[SkillAutocastSystem] filter");
return ecs.allOf(HeroSkillsComp, HeroAttrsComp, HeroViewComp);
}
@@ -226,7 +223,6 @@ export class SkillAutocastSystem extends ecs.ComblockSystem implements ecs.ISyst
const skillsData = e.get(HeroSkillsComp);
const heroModel = e.get(HeroAttrsComp);
const heroView = e.get(HeroViewComp);
console.log("[SkillAutocastSystem] update");
if (!skillsData || !heroModel || !heroView) return;
// 检查基本条件