mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🔥 移除无用代码
This commit is contained in:
148
src/types/Game/Calculate.d.ts
vendored
148
src/types/Game/Calculate.d.ts
vendored
@@ -1,148 +0,0 @@
|
||||
/**
|
||||
* @file types/Game/Calculate.d.ts
|
||||
* @description 养成计算器相关类型定义文件
|
||||
* @since Alpha v0.2.1
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 养成计算器相关类型定义命名空间
|
||||
* @since Alpha v0.2.1
|
||||
* @namespace TGApp.Game.Calculate
|
||||
* @memberof TGApp.Game
|
||||
*/
|
||||
declare namespace TGApp.Game.Calculate {
|
||||
/**
|
||||
* @description 获取同步角色列表返回
|
||||
* @since Alpha v0.2.1
|
||||
* @see TGRequest.User.calculate.getSyncAvatarListAll
|
||||
* @interface SyncAvatarListResponse
|
||||
* @extends TGApp.BBS.Response.BaseWithData
|
||||
* @property {Array<AvatarListItem>} data.list - 角色列表
|
||||
* @return SyncAvatarListResponse
|
||||
*/
|
||||
interface SyncAvatarListResponse extends TGApp.BBS.Response.BaseWithData {
|
||||
data: {
|
||||
list: AvatarListItem[];
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色列表返回的角色数据
|
||||
* @since Alpha v0.2.1
|
||||
* @interface AvatarListItem
|
||||
* @property {number} id - 角色 ID
|
||||
* @property {string} name - 角色名称
|
||||
* @property {string} icon - 角色头像
|
||||
* @property {number} weapon_cat_id - 角色武器类型
|
||||
* @property {number} avatar_level - 角色等级
|
||||
* @property {number} element_attr_id - 角色元素类型
|
||||
* @property {number} max_level - 角色最大等级
|
||||
* @property {number} level_current - 角色当前等级
|
||||
* @return AvatarListItem
|
||||
*/
|
||||
interface AvatarListItem {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
weapon_cat_id: number;
|
||||
avatar_level: number;
|
||||
element_attr_id: number;
|
||||
max_level: number;
|
||||
level_current: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色详情返回
|
||||
* @since Alpha v0.2.1
|
||||
* @see TGRequest.User.calculate.getSyncAvatarDetail
|
||||
* @interface SyncAvatarDetailResponse
|
||||
* @extends TGApp.BBS.Response.BaseWithData
|
||||
* @property {AvatarDetail} data - 角色详情
|
||||
* @return SyncAvatarDetailResponse
|
||||
*/
|
||||
interface SyncAvatarDetailResponse extends TGApp.BBS.Response.BaseWithData {
|
||||
data: TGApp.Game.Calculate.AvatarDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色详情返回的角色详情数据
|
||||
* @since Alpha v0.2.1
|
||||
* @interface AvatarDetail
|
||||
* @property {AvatarDetailSkill[]} skill_list - 角色技能列表
|
||||
* @property {AvatarDetailWeapon} weapon - 角色武器
|
||||
* @property {AvatarDetailRelic[]} reliquary_list - 角色圣遗物列表
|
||||
* @return AvatarDetail
|
||||
*/
|
||||
interface AvatarDetail {
|
||||
skill_list: AvatarDetailSkill[];
|
||||
weapon: AvatarDetailWeapon;
|
||||
reliquary_list: AvatarDetailRelic[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色详情返回的角色技能数据
|
||||
* @since Alpha v0.2.1
|
||||
* @interface AvatarDetailSkill
|
||||
* @property {number} id - 技能 ID
|
||||
* @property {number} group_id - 技能组 ID
|
||||
* @property {string} name - 技能名称
|
||||
* @property {string} icon - 技能图标
|
||||
* @property {number} max_level - 技能最大等级
|
||||
* @property {number} level_current - 技能当前等级
|
||||
* @return AvatarDetailSkill
|
||||
*/
|
||||
interface AvatarDetailSkill {
|
||||
id: number;
|
||||
group_id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
max_level: number;
|
||||
level_current: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色详情返回的角色武器数据
|
||||
* @since Alpha v0.2.1
|
||||
* @interface AvatarDetailWeapon
|
||||
* @property {number} id - 武器 ID
|
||||
* @property {string} name - 武器名称
|
||||
* @property {string} icon - 武器图标
|
||||
* @property {number} weapon_cat_id - 武器类型
|
||||
* @property {number} weapon_level - 武器等级
|
||||
* @property {number} max_level - 武器最大等级
|
||||
* @property {number} level_current - 武器当前等级
|
||||
* @return AvatarDetailWeapon
|
||||
*/
|
||||
interface AvatarDetailWeapon {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
weapon_cat_id: number;
|
||||
weapon_level: number;
|
||||
max_level: number;
|
||||
level_current: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取同步角色详情返回的角色圣遗物数据
|
||||
* @since Alpha v0.2.1
|
||||
* @interface AvatarDetailRelic
|
||||
* @property {number} id - 圣遗物 ID
|
||||
* @property {string} name - 圣遗物名称
|
||||
* @property {string} icon - 圣遗物图标
|
||||
* @property {number} reliquary_cat_id - 圣遗物类型
|
||||
* @property {number} reliquary_level - 圣遗物等级
|
||||
* @property {number} level_current - 圣遗物当前等级
|
||||
* @property {number} max_level - 圣遗物最大等级
|
||||
* @return AvatarDetailRelic
|
||||
*/
|
||||
interface AvatarDetailRelic {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
reliquary_cat_id: number;
|
||||
reliquary_level: number;
|
||||
level_current: number;
|
||||
max_level: number;
|
||||
}
|
||||
}
|
||||
194
src/types/Game/Character.d.ts
vendored
194
src/types/Game/Character.d.ts
vendored
@@ -1,194 +0,0 @@
|
||||
/**
|
||||
* @file types/Game/Character.d.ts
|
||||
* @description 游戏角色相关类型定义文件
|
||||
* @since Alpha v0.2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 游戏角色相关类型定义命名空间
|
||||
* @since Alpha v0.2.0
|
||||
* @namespace TGApp.Game.Character
|
||||
* @memberof TGApp.Game
|
||||
*/
|
||||
declare namespace TGApp.Game.Character {
|
||||
/**
|
||||
* @description 角色列表数据返回类型
|
||||
* @interface ListResponse
|
||||
* @since Alpha v0.2.0
|
||||
* @extends TGApp.BBS.Response.BaseWithData
|
||||
* @property {ListItem[]} data.avatars - 角色列表
|
||||
* @property {ListRole} data.role - 角色信息
|
||||
* @return ListResponse
|
||||
*/
|
||||
interface ListResponse extends TGApp.BBS.Response.BaseWithData {
|
||||
data: {
|
||||
avatars: ListItem[];
|
||||
role: ListRole;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色列表数据类型
|
||||
* @interface ListItem
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 角色 ID
|
||||
* @property {string} image - 角色全身像
|
||||
* @property {string} icon - 角色头像
|
||||
* @property {string} name - 角色名称
|
||||
* @property {TGApp.Game.Constant.EnumElementEn} element - 角色元素
|
||||
* @property {number} fetter - 角色好感等级
|
||||
* @property {number} level - 角色等级
|
||||
* @property {number} rarity - 角色稀有度
|
||||
* @property {LIWeapon} weapon - 角色武器
|
||||
* @property {LIRelic[]} reliquaries - 角色圣遗物
|
||||
* @property {LIConstellation[]} constellations - 角色命座
|
||||
* @property {number} actived_constellation_num - 角色已激活命座数量
|
||||
* @property {LICostume[]} costumes - 角色时装
|
||||
* @property {number} constellation_level - 角色命座等级
|
||||
* @property {unknown} external
|
||||
* @return ListItem
|
||||
*/
|
||||
interface ListItem {
|
||||
id: number;
|
||||
image: string;
|
||||
icon: string;
|
||||
name: string;
|
||||
element: TGApp.Game.Constant.EnumElementEn;
|
||||
fetter: number;
|
||||
level: number;
|
||||
rarity: number;
|
||||
weapon: LIWeapon;
|
||||
reliquaries: LIRelic[];
|
||||
constellations: LIConstellation[];
|
||||
actived_constellation_num: number;
|
||||
costumes: LICostume[];
|
||||
constellation_level: number;
|
||||
external: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色信息
|
||||
* @interface ListRole
|
||||
* @since Alpha v0.2.0
|
||||
* @property {string} AvatarUrl - 角色头像 // 大部分情况下是空的
|
||||
* @property {string} nickname - 角色昵称
|
||||
* @property {string} region - 角色所在地区
|
||||
* @property {number} level - 角色等级
|
||||
* @return ListRole
|
||||
*/
|
||||
interface ListRole {
|
||||
AvatarUrl: string;
|
||||
nickname: string;
|
||||
region: string;
|
||||
level: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色武器数据类型
|
||||
* @interface LIWeapon
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 武器 ID
|
||||
* @property {string} name - 武器名称
|
||||
* @property {string} icon - 武器图标
|
||||
* @property {number} type - 武器类型
|
||||
* @property {number} rarity - 武器稀有度
|
||||
* @property {number} level - 武器等级
|
||||
* @property {number} promote_level - 武器等级对应的突破等级
|
||||
* @property {string} type_name - 武器类型名称
|
||||
* @property {string} desc - 武器描述
|
||||
* @property {number} affix_level - 武器精炼等级
|
||||
* @return LIWeapon
|
||||
*/
|
||||
interface LIWeapon {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
type: number;
|
||||
rarity: number;
|
||||
level: number;
|
||||
promote_level: number;
|
||||
type_name: string;
|
||||
desc: string;
|
||||
affix_level: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色圣遗物数据类型
|
||||
* @interface LIRelic
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 圣遗物 ID
|
||||
* @property {string} name - 圣遗物名称
|
||||
* @property {string} icon - 圣遗物图标
|
||||
* @property {number} pos - 圣遗物位置
|
||||
* @property {number} rarity - 圣遗物稀有度
|
||||
* @property {number} level - 圣遗物等级
|
||||
* @property {RelicSet} set - 圣遗物套装
|
||||
* @property {TGApp.Game.Constant.EnumRelic} pos_name - 圣遗物位置名称
|
||||
* @return LIRelic
|
||||
*/
|
||||
interface LIRelic {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
pos: number;
|
||||
rarity: number;
|
||||
level: number;
|
||||
set: RelicSet;
|
||||
pos_name: TGApp.Game.Constant.EnumRelic;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 圣遗物套装数据类型
|
||||
* @interface RelicSet
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 圣遗物套装 ID
|
||||
* @property {string} name - 圣遗物套装名称
|
||||
* @property {number} affixes[].activation_number - 圣遗物套装激活数量
|
||||
* @property {string} affixes[].effect - 圣遗物套装效果
|
||||
* @return RelicSet
|
||||
*/
|
||||
interface RelicSet {
|
||||
id: number;
|
||||
name: string;
|
||||
affixes: Array<{
|
||||
activation_number: number;
|
||||
effect: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色命座数据类型
|
||||
* @interface LIConstellation
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 命座 ID
|
||||
* @property {string} name - 命座名称
|
||||
* @property {string} icon - 命座图标
|
||||
* @property {string} effect - 命座效果
|
||||
* @property {boolean} is_actived - 命座是否激活
|
||||
* @property {number} pos - 命座位置
|
||||
* @return LIConstellation
|
||||
*/
|
||||
interface LIConstellation {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
effect: string;
|
||||
is_actived: boolean;
|
||||
pos: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 角色时装数据类型
|
||||
* @interface LICostume
|
||||
* @since Alpha v0.2.0
|
||||
* @property {number} id - 时装 ID
|
||||
* @property {string} name - 时装名称
|
||||
* @property {string} icon - 时装图标
|
||||
* @return LICostume
|
||||
*/
|
||||
interface LICostume {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
}
|
||||
}
|
||||
82
src/types/Game/Constant.d.ts
vendored
82
src/types/Game/Constant.d.ts
vendored
@@ -86,85 +86,3 @@ declare namespace TGApp.Game.Constant {
|
||||
circlet = "理之冠",
|
||||
}
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @description 突破信息,适用于角色和武器等级
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface levelUp
|
||||
// * @property {number} level - 突破等级,指达到突破要求的等级,0 表示未突破
|
||||
// * @property {Material[]} materials - 突破所需材料
|
||||
// * @property {Record<string, number>[]} upAttri - 突破后的属性加成
|
||||
// * @property {Record<string, number>[]} averAttri - 突破后的平均每级属性加成
|
||||
// * @property {string} addInfo - 突破后的附加信息,如天赋解锁
|
||||
// * @return levelUp
|
||||
// */
|
||||
// export interface levelUp {
|
||||
// level: number
|
||||
// materials: Material[]
|
||||
// upAttri: Array<Record<string, number>>
|
||||
// averAttri: Array<Record<string, number>>
|
||||
// addInfo?: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 材料信息
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface Material
|
||||
// * @property {number} id - 材料 ID
|
||||
// * @property {string} name - 材料名称
|
||||
// * @property {number} star - 材料星级
|
||||
// * @property {string} type - 材料类型
|
||||
// * @property {number} count - 材料数量
|
||||
// * @property {string[]} source - 材料获取途径
|
||||
// * @property {string} description - 材料描述
|
||||
// * @return Material
|
||||
// */
|
||||
// export interface Material {
|
||||
// id: number
|
||||
// name: string
|
||||
// star: number
|
||||
// type: string
|
||||
// count?: number
|
||||
// source: string[]
|
||||
// description: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 本应用的食物类型
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface Food
|
||||
// * @property {number} id - 食物 ID
|
||||
// * @property {string} name - 食物名称
|
||||
// * @property {number} star - 食物星级
|
||||
// * @property {string} type - 食物类型
|
||||
// * @property {number} count - 食物数量
|
||||
// * @property {string} description - 食物描述
|
||||
// * @property {string[]} source - 食谱来源
|
||||
// * @property {string} effect - 食物效果
|
||||
// * @return Food
|
||||
// */
|
||||
// export interface Food {
|
||||
// id: number
|
||||
// name: string
|
||||
// star: number
|
||||
// type: string
|
||||
// count?: number
|
||||
// description: string
|
||||
// source: string[]
|
||||
// effect: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 本应用的基础属性类型
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface BaseAttri
|
||||
// * @property {string} icon - 属性图标
|
||||
// * @property {string} name - 属性名称
|
||||
// * @property {string} value - 属性值
|
||||
// * @return BaseAttri
|
||||
// */
|
||||
// export interface BaseAttri {
|
||||
// icon: string
|
||||
// name: string
|
||||
// value: string
|
||||
// }
|
||||
|
||||
119
src/types/Game/DailyNotes.d.ts
vendored
119
src/types/Game/DailyNotes.d.ts
vendored
@@ -1,119 +0,0 @@
|
||||
/**
|
||||
* @file types/Game/DailyNotes.d.ts
|
||||
* @description 获取实时便笺数据类型定义文件
|
||||
* @since Alpha v0.2.2
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 获取实时便笺数据
|
||||
* @since Alpha v0.2.2
|
||||
* @namespace TGApp.Game.DailyNotes
|
||||
* @memberof TGApp.Game
|
||||
*/
|
||||
declare namespace TGApp.Game.DailyNotes {
|
||||
/**
|
||||
* @description 便笺数据返回
|
||||
* @since Alpha v0.2.2
|
||||
* @interface Response
|
||||
* @extends TGApp.BBS.Response.BaseWithData
|
||||
* @property {FullInfo} data - 便笺数据
|
||||
* @return Response
|
||||
*/
|
||||
interface Response extends TGApp.BBS.Response.BaseWithData {
|
||||
data: FullInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 便笺数据
|
||||
* @since Alpha v0.2.2
|
||||
* @interface FullInfo
|
||||
* @property {number} current_resin - 当前体力
|
||||
* @property {number} max_resin - 最大体力
|
||||
* @property {string} resin_recovery_time - 体力恢复时间(秒)
|
||||
* @property {number} finished_task_num - 已完成日常任务数
|
||||
* @property {number} total_task_num - 日常任务总数
|
||||
* @property {boolean} is_extra_reward_received - 是否已领取额外奖励
|
||||
* @property {number} remain_resin_discount_num - 剩余周本减半次数
|
||||
* @property {number} resin_discount_num_limit - 周本减半次数上限
|
||||
* @property {number} current_expedition_num - 当前委托数
|
||||
* @property {number} max_expedition_num - 最大委托数
|
||||
* @property {Expedition[]} expeditions - 委托数据
|
||||
* @property {number} current_home_coin - 洞天宝钱数
|
||||
* @property {number} max_home_coin - 洞天宝钱上限
|
||||
* @property {string} home_coin_recovery_time - 洞天宝钱恢复时间(秒)
|
||||
* @property {string} calendar_url - 日历地址 // 未使用
|
||||
* @property {Transform} transformer - 便笺数据转换器
|
||||
* @return FullInfo
|
||||
*/
|
||||
interface FullInfo {
|
||||
current_resin: number;
|
||||
max_resin: number;
|
||||
resin_recovery_time: string;
|
||||
finished_task_num: number;
|
||||
total_task_num: number;
|
||||
is_extra_reward_received: boolean;
|
||||
remain_resin_discount_num: number;
|
||||
resin_discount_num_limit: number;
|
||||
current_expedition_num: number;
|
||||
max_expedition_num: number;
|
||||
expeditions: Expedition[];
|
||||
current_home_coin: number;
|
||||
max_home_coin: number;
|
||||
home_coin_recovery_time: string;
|
||||
calendar_url: string;
|
||||
transformer: Transform;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 委托数据
|
||||
* @since Alpha v0.2.2
|
||||
* @interface Expedition
|
||||
* @property {string} avatar_side_icon - 头像侧边图标
|
||||
* @property {string} status - 委托状态 // Ongoing: 进行中,Finished: 已完成,Expired: 已过期
|
||||
* @property {string} remained_time - 剩余时间(秒)
|
||||
* @return Expedition
|
||||
*/
|
||||
interface Expedition {
|
||||
avatar_side_icon: string;
|
||||
status: string;
|
||||
remained_time: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 便笺数据转换器
|
||||
* @since Alpha v0.2.2
|
||||
* @interface Transform
|
||||
* @property {boolean} obtained - 是否已获取
|
||||
* @property {TransformTime} recovery_time - 恢复时间
|
||||
* @property {string} wiki - 百科地址
|
||||
* @property {boolean} noticed - 是否已通知
|
||||
* @property {string} last_job_id - 上次任务 ID
|
||||
* @return Transform
|
||||
*/
|
||||
interface Transform {
|
||||
obtained: boolean;
|
||||
recovery_time: TransformTime;
|
||||
wiki: string;
|
||||
noticed: boolean;
|
||||
last_job_id: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 便笺数据转换器恢复时间
|
||||
* @since Alpha v0.2.2
|
||||
* @interface TransformTime
|
||||
* @property {number} Day - 天
|
||||
* @property {number} Hour - 小时
|
||||
* @property {number} Minute - 分钟
|
||||
* @property {number} Second - 秒
|
||||
* @property {boolean} reached - 是否已达到恢复时间
|
||||
* @return TransformTime
|
||||
*/
|
||||
interface TransformTime {
|
||||
Day: number;
|
||||
Hour: number;
|
||||
Minute: number;
|
||||
Second: number;
|
||||
reached: boolean;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user