refactor(heroComp): 拆分精简英雄卡配置接口
将原本CardConfig中的英雄卡必要字段抽离为HeroCardConfig, 仅保留CHeroComp组件需要的渲染交互字段,减少不必要的依赖和字段。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 技能基础信息接口
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user