Merge pull request #456 from thecodingmachine/performance

Performance settings
This commit is contained in:
Kharhamel 2020-12-03 14:33:12 +01:00 committed by GitHub
commit 95665a28d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 308 additions and 51 deletions

View file

@ -454,9 +454,7 @@ export class GameScene extends ResizableScene implements CenterListener {
this.initUsersPosition(roomJoinedMessage.users);
this.connectionAnswerPromiseResolve(roomJoinedMessage);
// Analyze tags to find if we are admin. If yes, show console.
if (this.connection.hasTag('admin')) {
this.ConsoleGlobalMessageManager = new ConsoleGlobalMessageManager(this.connection, this.userInputManager);
}
this.ConsoleGlobalMessageManager = new ConsoleGlobalMessageManager(this.connection, this.userInputManager, this.connection.hasTag('admin'));
});
connection.onUserJoins((message: MessageUserJoined) => {