♻️ 战绩世界探索数据结构调整

This commit is contained in:
BTMuli
2025-09-11 13:29:27 +08:00
parent 286c1e2459
commit bd37e3e491
6 changed files with 89 additions and 20 deletions

View File

@@ -137,7 +137,7 @@ declare namespace TGApp.Sqlite.Record {
/**
* @description 世界探索信息类型
* @interface WorldExplore
* @since Beta v0.7.2
* @since Beta v0.8.1
* @property {number} id - 地区 ID
* @property {string} name - 地区名称
* @property {string} iconLight - 地区图标(亮)
@@ -145,6 +145,7 @@ declare namespace TGApp.Sqlite.Record {
* @property {string} cover - 封面
* @property {number} reputation - 地区声望等级
* @property {WorldOffering} offering - 地区供奉信息
* @property {Array<WorldOffering>} offerings - 地区供奉列表
* @property {number} exploration - 地区探索进度
* @property {Array<WorldChild>} children - 子地区
*/
@@ -156,8 +157,13 @@ declare namespace TGApp.Sqlite.Record {
bg: string;
cover: string;
reputation?: number;
/**
* @deprecated 已弃用,建议使用 offerings
*/
offering?: WorldOffering;
offerings?: Array<WorldOffering>;
exploration: number;
area_exploration_list?: Array<AreaExploration>;
children: Array<WorldChild>;
};
@@ -171,6 +177,15 @@ declare namespace TGApp.Sqlite.Record {
*/
type WorldOffering = { name: string; level: number; icon: string };
/**
* @description 区域探索类型
* @interface AreaExploration
* @since Beta v0.8.1
* @property {string} name - 名称
* @property {number} exploration_percentage - 探索千分比
*/
type AreaExploration = { name: string; exploration_percentage: number };
/**
* @description 子地区类型
* @interface WorldChild