完成天赋数据获取 & 数据合并

This commit is contained in:
BTMuli
2023-06-29 09:18:57 +08:00
parent 2bf0b2db95
commit 1f1c25c0bd
6 changed files with 104 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ declare namespace TGApp.Sqlite.Character {
/**
* @description 用户角色列表的角色类型
* @since Alpha v0.2.0
* @since Alpha v0.2.1
* @interface UserRole
* @property {number} uid- 用户 ID
* @property {number} cid - 角色 ID
@@ -50,7 +50,7 @@ declare namespace TGApp.Sqlite.Character {
* @property {RoleConstellation[]} constellation - 角色命座 // 数据库中以字符串形式存储
* @property {number} activeConstellation - 角色激活命座
* @property {RoleCostume} costume - 角色时装 // 数据库中以字符串形式存储
* @property {string} talent - 角色天赋 // TODO: 天赋数据缺失来源
* @property {RoleTalent[]} talent - 角色天赋 // 数据库中以字符串形式存储
* @property {string} updated - 数据更新时间
* @return UserRole
*/
@@ -167,4 +167,25 @@ declare namespace TGApp.Sqlite.Character {
name: string;
icon: string;
}
/**
* @description 角色列表的天赋数据类型
* @since Alpha v0.2.1
* @interface RoleTalent
* @property {number} id - 天赋 ID
* @property {number} pos - 天赋位置
* @property {string} name - 天赋名称
* @property {string} icon - 天赋图标
* @property {number} max - 天赋最大等级
* @property {number} level - 天赋等级
* @return RoleTalent
*/
export interface RoleTalent {
id: number;
pos: number;
name: string;
icon: string;
max: number;
level: number;
}
}