移动脚本目录

This commit is contained in:
2025-05-14 19:22:21 +08:00
parent 830bf2bb29
commit f229ce7fa0
12 changed files with 8 additions and 9 deletions

33
src/models/DOCandy.ts Normal file
View File

@@ -0,0 +1,33 @@
import { StorageManager } from "./StorageManager"
export class DOCandy {
private data: any
private show: number
constructor(dataCandy: any, show: number) {
this.data = dataCandy
this.show = show
}
//====================================持久化数据
public get_left(): number {
return this.data.left
}
public set_left(left: number): void {
this.data.left = left
StorageManager.getInstance().onChanged()
}
//====================================持久化数据
public get_show(): number {
return this.show
}
}