🆕 Disconnection handler, when you got disconnected you automatic go back to the room

This commit is contained in:
duckietm
2026-03-19 15:04:47 +01:00
parent eee289e8f2
commit 5aef7a3de2
16 changed files with 498 additions and 87 deletions
@@ -25,8 +25,6 @@ export class FloorplanEditor
private _image: HTMLImageElement;
public onTilemapChange: (() => void) | null = null;
constructor()
{
const width = TILE_SIZE * MAX_NUM_TILE_PER_AXIS + 20;
@@ -299,8 +297,6 @@ export class FloorplanEditor
}
this.renderSquareSelectionPreview();
if(this.onTilemapChange) this.onTilemapChange();
}
private renderSquareSelectionPreview(): void
@@ -477,7 +473,6 @@ export class FloorplanEditor
this._squareSelectStart = null;
this._squareSelectEnd = null;
this.clearCanvas();
this.onTilemapChange = null;
}