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

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

View File

@@ -5,7 +5,6 @@ import { ItalConf, TalType, TalEType, talConf } from "../common/config/TalSet";
import { BuffConf, SkillSet } from "../common/config/SkillSet";
import { HeroInfo } from "../common/config/heroSet";
import { HeroViewComp } from "./HeroViewComp";
import { SkillConComp } from "./SkillConComp";
const { ccclass } = _decorator;
@@ -60,7 +59,6 @@ export class TalComp extends ecs.Comp {
start() {
// 运行时获取组件,避免编译时循环引用
this.heroView = this.ent.get(HeroViewComp);
this.skillCon = this.ent.get(SkillConComp);
if (this.heroView) {
this.heroUuid = this.heroView.hero_uuid;
this.initializeTalents();