补充UI细节 添加每日挑战
This commit is contained in:
@@ -23,6 +23,7 @@ export interface DataStage {
|
||||
difficulty: string,
|
||||
index: number,
|
||||
mistake?: number,
|
||||
score?: number,
|
||||
duration?: number,
|
||||
note_open?: boolean,
|
||||
hint?: number,
|
||||
@@ -33,6 +34,7 @@ export interface DataStage {
|
||||
export function createDataStage(id: string, type: number, name: string, difficulty: string, index: number): DataStage {
|
||||
var data: DataStage = {id: id, type: type, name: name, difficulty: difficulty, index: index}
|
||||
data.mistake = 0
|
||||
data.score = 0
|
||||
data.duration = 0
|
||||
data.note_open = false
|
||||
data.hint = 2
|
||||
@@ -43,12 +45,15 @@ export function createDataStage(id: string, type: number, name: string, difficul
|
||||
}
|
||||
|
||||
|
||||
export interface StageProgress {//关卡完成进度
|
||||
stageID: string,
|
||||
progress: number,
|
||||
}
|
||||
export interface DataProgress {
|
||||
difficulty: string,
|
||||
index: number,
|
||||
}
|
||||
export interface DataUser {
|
||||
isCompletedMain: boolean,//当前主线是否已完成 默认true
|
||||
dones: Array<string>,//已完成关卡
|
||||
progresses: Array<DataProgress>,//已经完成的进度
|
||||
dones: Array<StageProgress>,//关卡完成进度
|
||||
progresses: Array<DataProgress>,//主线各个难度进度
|
||||
}
|
||||
Reference in New Issue
Block a user