add trophy logic
This commit is contained in:
@@ -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>,//主线各个难度进度
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user