👽️ 适配深渊新字段

This commit is contained in:
目棃
2024-10-16 18:59:05 +08:00
parent f8121d504c
commit 1794df2b8a
5 changed files with 39 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ declare namespace TGApp.Game.Abyss {
/**
* @description 深渊数据类型
* @interface FullData
* @since Alpha v0.2.0
* @since Beta v0.6.1
* @property {number} schedule_id - 深渊周期 ID
* @property {string} start_time - 深渊开始时间,单位:秒
* @property {string} end_time - 深渊结束时间,单位:秒
@@ -42,6 +42,8 @@ declare namespace TGApp.Game.Abyss {
* @property {Floor[]} floors - 深渊各层数据
* @property {number} total_star - 总星数
* @property {boolean} is_unlock - 是否解锁
* @property {boolean} is_just_skipped_floor - 是否跳过楼层
* @property {boolean} skipped_floor - 跳过楼层
* @return FullData
*/
interface FullData {
@@ -60,6 +62,8 @@ declare namespace TGApp.Game.Abyss {
floors: Floor[];
total_star: number;
is_unlock: boolean;
is_just_skipped_floor: boolean;
skipped_floor: string;
}
/**

View File

@@ -1,19 +1,19 @@
/**
* @file types/Sqlite/Abyss.d.ts
* @description 数据库深境螺旋相关类型定义文件
* @since Beta v0.3.9
* @since Beta v0.6.1
*/
/**
* @description 数据库深渊类型命名
* @since Beta v0.3.9
* @since Beta v0.6.1
* @namespace TGApp.Sqlite.Abyss
* @memberof TGApp.Sqlite
*/
declare namespace TGApp.Sqlite.Abyss {
/**
* @description 数据库-深境螺旋表
* @since Alpha v0.2.0
* @since Beta v0.6.1
* @interface SingleTable
* @property {string} uid - 用户 UID
* @property {number} id - 深境螺旋 ID
@@ -32,6 +32,7 @@ declare namespace TGApp.Sqlite.Abyss {
* @property {Character[]} normalSkillRank - 元素战技释放数
* @property {Character[]} energySkillRank - 元素爆发次数
* @property {Floor[]} floors - 深境螺旋各层数据
* @property {string} skippedFloor - 跳过楼层
* @property {string} updated - 更新时间
* @return SingleTable
*/
@@ -52,6 +53,7 @@ declare namespace TGApp.Sqlite.Abyss {
normalSkillRank: string; // Character[]
energySkillRank: string; // Character[]
floors: string; // Floor[]
skippedFloor: string;
updated: string;
}