🌱 添加 wiki 武器类型相关

This commit is contained in:
BTMuli
2023-12-15 18:27:55 +08:00
parent dffb1475f8
commit a9f80da053
7 changed files with 143 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
/**
* @file types App Weapon.d.ts
* @file types/App/Weapon.d.ts
* @description 本应用的武器类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
* @since Beta v0.3.8
*/
declare namespace TGApp.App.Weapon {
@@ -28,4 +27,30 @@ declare namespace TGApp.App.Weapon {
weaponIcon: string;
icon: string;
}
/**
* @description 转换后的武器数据
* @since Beta v0.3.8
* @interface WikiItem
* @memberof TGApp.App.Weapon
* @property {number} id 武器 id
* @property {string} name 武器名称
* @property {string} description 武器简介
* @property {number} star 武器星级
* @property {string} weapon 武器类型
* @property {TGApp.App.Calendar.Material[]} materials 武器培养材料
* @property {TGACore.Components.Weapon.RhiAffix} affix 精炼描述
* @property {string} story 武器故事
* @return WikiItem
*/
interface WikiItem {
id: number;
name: string;
description: string;
star: number;
weapon: string;
materials: TGApp.App.Calendar.Material[];
affix: TGACore.Components.Weapon.RhiAffix;
story: string;
}
}