lint fixes
This commit is contained in:
parent
f550c5a775
commit
032facb75f
@ -312,10 +312,10 @@ export class IoSocketController {
|
||||
console.warn(message);
|
||||
}
|
||||
|
||||
private async handleJoinRoom(client: ExSocketInterface, roomId: string, position: PointInterface, viewport: ViewportInterface, name: string, characterLayers: string[]): Promise<void> {
|
||||
private handleJoinRoom(client: ExSocketInterface, roomId: string, position: PointInterface, viewport: ViewportInterface, name: string, characterLayers: string[]): void {
|
||||
try {
|
||||
//join new previous room
|
||||
const gameRoom = await this.joinRoom(client, roomId, position);
|
||||
const gameRoom = this.joinRoom(client, roomId, position);
|
||||
|
||||
const things = gameRoom.setViewport(client, viewport);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import "jasmine";
|
||||
import {GameRoom, ConnectCallback, DisconnectCallback } from "_Model/GameRoom";
|
||||
import {GameRoom, ConnectCallback, DisconnectCallback } from "../src/Model/GameRoom";
|
||||
import {Point} from "../src/Model/Websocket/MessageUserPosition";
|
||||
import { Group } from "../src/Model/Group";
|
||||
import {ExSocketInterface} from "_Model/Websocket/ExSocketInterface";
|
||||
|
@ -59,7 +59,7 @@ export class RoomConnection implements RoomConnection {
|
||||
url += '/room/'+roomId
|
||||
url += '?token='+(token ?encodeURIComponent(token):'');
|
||||
url += '&name='+encodeURIComponent(name);
|
||||
for (let layer of characterLayers) {
|
||||
for (const layer of characterLayers) {
|
||||
url += '&characterLayers='+encodeURIComponent(layer);
|
||||
}
|
||||
url += '&x='+Math.floor(position.x);
|
||||
|
@ -598,7 +598,6 @@ export class GameScene extends ResizableScene implements CenterListener {
|
||||
|
||||
this.scene.stop(this.scene.key);
|
||||
this.scene.remove(this.scene.key);
|
||||
window.removeEventListener('resize', this.onResizeCallback);
|
||||
})
|
||||
|
||||
connection.onActionableEvent((message => {
|
||||
|
@ -266,7 +266,7 @@ export class EnableCameraScene extends Phaser.Scene {
|
||||
mediaManager.stopCamera();
|
||||
mediaManager.stopMicrophone();
|
||||
|
||||
let {key, startLayerName} = await gameManager.loadStartingMap(this.scene);
|
||||
const {key, startLayerName} = await gameManager.loadStartingMap(this.scene);
|
||||
this.scene.start(key, {startLayerName});
|
||||
}
|
||||
|
||||
|
@ -3871,7 +3871,7 @@ quill-delta@^3.6.2:
|
||||
extend "^3.0.2"
|
||||
fast-diff "1.1.2"
|
||||
|
||||
quill@1.3.7:
|
||||
quill@^1.3.7:
|
||||
version "1.3.7"
|
||||
resolved "https://registry.yarnpkg.com/quill/-/quill-1.3.7.tgz#da5b2f3a2c470e932340cdbf3668c9f21f9286e8"
|
||||
integrity sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==
|
||||
|
Loading…
Reference in New Issue
Block a user