add trophy logic

This commit is contained in:
2025-05-22 14:54:48 +08:00
parent 16a5eb9e6b
commit 2bf07ab8f6
27 changed files with 587 additions and 127 deletions

View File

@@ -17,7 +17,7 @@ export interface DataUndo {
//关卡数据
export interface DataStage {
id: string,
id: string,//关卡ID dc关卡格式为年-月-日
type: number,
name: string,
difficulty: string,
@@ -46,14 +46,22 @@ export function createDataStage(id: string, type: number, name: string, difficul
export interface StageProgress {//关卡完成进度
stageID: string,
stageID: string,//关卡ID dc关卡格式为年-月-日
progress: number,
}
export interface DataProgress {
export interface TrophyRecord {
year: number,
month: number,
day: number,
isNew: boolean,
read: boolean,
}
export interface DataProgress {//关卡难度进度
difficulty: string,
index: number,
}
export interface DataUser {
dones: Array<StageProgress>,//关卡完成进度
trophy_records: Array<TrophyRecord>,//奖杯获得记录
progresses: Array<DataProgress>,//主线各个难度进度
}