添加撤回逻辑

This commit is contained in:
2025-05-16 21:10:37 +08:00
parent 308deb15a0
commit 404824bf07
9 changed files with 2791 additions and 4389 deletions

View File

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