feat: 新增天赋系统界面及数据模型

- 添加 TalentsComp 组件实现天赋系统界面,包含等级展示、天赋列表和升级功能
- 在 GameUIConfig 中注册天赋界面配置
- 扩展 SingletonModuleComp 数据结构以支持玩家等级、经验和天赋点存储
- 新增天赋系统设计文档和界面预制体资源
- 启用角色控制器中的天赋界面节点
This commit is contained in:
walkpan
2026-04-26 11:18:55 +08:00
parent 6281c0f1b2
commit a5bff0fcba
13 changed files with 7146 additions and 2422 deletions

View File

@@ -17,8 +17,11 @@ interface GameDate{
fight_hero:number,
collection?: {
talents: Record<number, number>,
skills: {uuid:0,count:0},
friend:{uuid:0,count:0},
player_level: number,
player_exp: number,
talent_points: number,
skills?: {uuid:0,count:0},
friend?: {uuid:0,count:0},
}
}
interface CloudData {
@@ -126,6 +129,13 @@ export class SingletonModuleComp extends ecs.Comp {
} as GameScoreStats,
gold: 0, // 金币数据MVVM绑定字段
collection: {
talents: {}, // 存储各个天赋的等级: { talent_id: level }
player_level: 1, // 玩家等级
player_exp: 0, // 玩家当前经验
talent_points: 0, // 当前可用天赋点
},
};