Kleine Verbesserungen
This commit is contained in:
@@ -14,7 +14,7 @@ class ClientHandler {
|
||||
this.socket
|
||||
);
|
||||
|
||||
this.socket.on("disconnect", () => { this.defaultDisconnect() })
|
||||
this.socket.on("disconnect", () => { this.defaultDisconnect() });
|
||||
|
||||
this.checkForLobby();
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ class Lobby {
|
||||
constructor(io, lobbyManager, code) {
|
||||
this.io = io;
|
||||
this.lobbyManager = lobbyManager;
|
||||
|
||||
this.code = code;
|
||||
/** @type {Array<SocketUser>} */
|
||||
this.users = [];
|
||||
@@ -23,7 +24,6 @@ class Lobby {
|
||||
this.sendLobbyUserUpdate();
|
||||
|
||||
if(this.users.length === 2) {
|
||||
console.log("Starte Spiel");
|
||||
this.startGame();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class TemporaryLobby{
|
||||
this.users = users;
|
||||
this.lobbyManager = lobbyManager;
|
||||
|
||||
setTimeout(this.selfDestroy.bind(this), 5000);
|
||||
setTimeout(this.selfDestroy.bind(this), 4000);
|
||||
}
|
||||
|
||||
selfDestroy(){
|
||||
|
||||
Reference in New Issue
Block a user