🌱 添加 wiki 角色类型相关

This commit is contained in:
BTMuli
2023-12-15 17:00:24 +08:00
parent 2df65515a4
commit 39cc07694a
5 changed files with 379 additions and 15 deletions

View File

@@ -1,8 +1,7 @@
/**
* @file types App Character.d.ts
* @file types/App/Character.d.ts
* @description 角色相关类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.2
* @since Beta v0.3.8
*/
declare namespace TGApp.App.Character {
@@ -32,4 +31,63 @@ declare namespace TGApp.App.Character {
weapon: string;
nameCard: string;
}
/**
* @description Wiki 详细数据
* @since Beta v0.3.8
* @interface WikiItem
* @memberof TGApp.Plugins.Hutao.Character
* @property {number} id 角色编号
* @property {string} name 角色名称
* @property {string} title 角色称号
* @property {string} description 角色简介
* @property {object} brief 角色简介
* @property {string} brief.camp 角色地区
* @property {string} brief.constellation 角色星座
* @property {string} brief.birth 角色生日
* @property {object} brief.cv 角色声优
* @property {string} brief.cv.cn 角色声优-中文
* @property {string} brief.cv.jp 角色声优-日文
* @property {string} brief.cv.en 角色声优-英文
* @property {string} brief.cv.kr 角色声优-韩文
* @property {number} star 角色星级
* @property {string} element 角色元素类型
* @property {TGApp.Plugins.Hutao.Base.WeaponType} weapon 角色武器类型
* @property {TGApp.App.Calendar.Material[]} materials 角色培养材料
* @property {object} skills 角色技能
* @property {TGApp.Plugins.Hutao.Character.RhisdSkill[]} skills.normal 正常技能-普攻、战技、元素爆发
* @property {TGApp.Plugins.Hutao.Character.RhisdSkill[]} skills.special 特殊技能
* @property {TGApp.Plugins.Hutao.Character.RhisdTalent[]} constellation 角色命座
* @property {TGApp.Plugins.Hutao.Character.RhiFetter[]} talks 闲聊
* @property {TGApp.Plugins.Hutao.Character.RhiFetter[]} stories 故事
* @return WikiItem
*/
interface WikiItem {
id: number;
name: string;
title: string;
description: string;
brief: {
camp: string;
constellation: string;
birth: string;
cv: {
cn: string;
jp: string;
en: string;
kr: string;
};
};
star: number;
element: string;
weapon: TGApp.Plugins.Hutao.Base.WeaponType;
materials: TGApp.App.Calendar.Material[];
skills: {
normal: TGApp.Plugins.Hutao.Character.RhisdSkill[];
special: TGApp.Plugins.Hutao.Character.RhisdSkill[];
};
constellation: TGApp.Plugins.Hutao.Character.RhisdTalent[];
talks: TGApp.Plugins.Hutao.Character.RhiFetter[];
stories: TGApp.Plugins.Hutao.Character.RhiFetter[];
}
}