移动脚本目录
This commit is contained in:
33
src/models/DOCandy.ts
Normal file
33
src/models/DOCandy.ts
Normal 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user