Refactor EditorManager to use Tools type and remove unnecessary whitespace in Hammer class; add Tools type definition.

This commit is contained in:
2025-12-18 08:31:53 +01:00
parent 053fa0082f
commit c094bc7639
4 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
import type { Tools } from "../type";
export class EditorManager {
tool : "draw" | "eraser" = "draw";
tool : Tools = "draw";
selected_tile: number = 0;
displayImageEaster: boolean = false;
tileMap: { x: number, y: number, tile: number }[] = [];