refactor(heroComp): 拆分精简英雄卡配置接口

将原本CardConfig中的英雄卡必要字段抽离为HeroCardConfig,
仅保留CHeroComp组件需要的渲染交互字段,减少不必要的依赖和字段。
This commit is contained in:
panFD
2026-08-23 17:47:03 +08:00
parent 954ee10244
commit 0d7f53b463
2 changed files with 19 additions and 10 deletions

View File

@@ -325,6 +325,20 @@ export interface heroInfo {
/** 分级能力说明索引0=1级依次递增信息面板逐条展示各等级技能与能力 */
infos?: string[];
}
/**
* 英雄卡配置CHeroComp 专用,从 CardConfig 精简)
* 仅保留英雄卡渲染和交互必需的字段
*/
export interface HeroCardConfig {
uuid: number;
name?: string;
info?: string;
cost: number;
card_lv: number;
base_card_lv?: number;
}
/**
* 技能基础信息接口
*/