整理持久化数据结构

This commit is contained in:
2025-05-14 20:05:17 +08:00
parent dcf4fae2c1
commit 765ba7bfe9
6 changed files with 48 additions and 46 deletions

26
src/types/global.ts Normal file
View 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
View File

@@ -0,0 +1,3 @@
{
"uuid": "c76d8037-4918-4ac5-a920-02fe0f4d8df7"
}