整理持久化数据结构
This commit is contained in:
26
src/types/global.ts
Normal file
26
src/types/global.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
//格子持久化数据结构
|
||||
export interface DataBlock {
|
||||
index: number,
|
||||
show: number,
|
||||
score: number
|
||||
notes: Array<number>,
|
||||
}
|
||||
|
||||
|
||||
//可选数字
|
||||
export interface DataCandy {
|
||||
left: number,
|
||||
}
|
||||
|
||||
|
||||
//关卡数据
|
||||
export interface DataStage {
|
||||
mistake: number,
|
||||
difficulty: number,
|
||||
duration: number,
|
||||
note_open: boolean,
|
||||
blocks: Array<DataBlock>,
|
||||
candys: Array<DataCandy>,
|
||||
}
|
||||
3
src/types/global.ts.meta
Normal file
3
src/types/global.ts.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"uuid": "c76d8037-4918-4ac5-a920-02fe0f4d8df7"
|
||||
}
|
||||
Reference in New Issue
Block a user