From 8b90a14c396b3bc62dda9b2a0552c692f754be2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sun, 28 Mar 2021 16:57:09 +0200 Subject: [PATCH] Fix import --- front/src/Phaser/Game/GameScene.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 28a2ef2f..a906e8ee 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -41,7 +41,7 @@ import {ActionableItem} from "../Items/ActionableItem"; import {UserInputManager} from "../UserInput/UserInputManager"; import {UserMovedMessage} from "../../Messages/generated/messages_pb"; import {ProtobufClientUtils} from "../../Network/ProtobufClientUtils"; -import {connectionManager, ConnexionMessageEvent, ConnexionMessageEventTypes} from "../../Connexion/ConnectionManager"; +import {connectionManager} from "../../Connexion/ConnectionManager"; import {RoomConnection} from "../../Connexion/RoomConnection"; import {GlobalMessageManager} from "../../Administration/GlobalMessageManager"; import {userMessageManager} from "../../Administration/UserMessageManager"; @@ -1380,19 +1380,6 @@ ${escapedMessage} }); } - private onConnexionMessage(event: ConnexionMessageEvent) { - if (event.type === ConnexionMessageEventTypes.worldFull) { - this.cleanupClosingScene(); - this.scene.stop(ReconnectingSceneName); - this.userInputManager.disableControls(); - this.scene.start(ErrorSceneName, { - title: 'Connection rejected', - subTitle: 'The world you are trying to join is full. Try again later.', - message: 'If you want more information, you may contact us at: workadventure@thecodingmachine.com' - }); - } - } - //todo: put this into an 'orchestrator' scene (EntryScene?) private showWorldFullError(): void { this.cleanupClosingScene();