Files
heros/assets/script/game/hero/TalComp.ts
panw deb224b067 refactor(game): 重构天赋系统配置和组件逻辑
重构天赋系统配置,包括:
1. 调整天赋类型枚举和效果枚举
2. 移除旧的天赋配置数据
3. 简化天赋组件实现
4. 更新设计文档中的天赋描述

同时修正地图组件中的英雄位置坐标和缩放值
2025-11-18 11:00:18 +08:00

38 lines
997 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { _decorator } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { BuffConf, SkillSet } from "../common/config/SkillSet";
import { HeroInfo } from "../common/config/heroSet";
import { HeroViewComp } from "./HeroViewComp";
const { ccclass } = _decorator;
/**
* 天赋系统组件类
* 继承自 CCComp作为 ECS 架构中的组件存在
* 负责管理英雄的天赋系统,包括天赋获取、触发、效果应用等
*/
@ccclass('TalComp')
@ecs.register('TalComp', false)
export class TalComp extends ecs.Comp {
/** 英雄视图组件引用,运行时获取避免循环引用 */
private heroView: any = null;
private skillCon:any=null;
/** 英雄唯一标识符,用于从配置中获取英雄信息 */
private heroUuid: number = 0;
start() {
}
reset() {
}
}