Delete params not used
This commit is contained in:
parent
e35c188854
commit
099961b818
@ -1,8 +1,6 @@
|
|||||||
import {ExtRoomsInterface} from "./ExtRoomsInterface";
|
import {ExtRoomsInterface} from "./ExtRoomsInterface";
|
||||||
import socketIO = require('socket.io');
|
import socketIO = require('socket.io');
|
||||||
import {ExSocketInterface} from "./ExSocketInterface";
|
import {ExSocketInterface} from "./ExSocketInterface";
|
||||||
import {MessageUserPosition} from "./MessageUserPosition";
|
|
||||||
import {World} from "_Model/World";
|
|
||||||
|
|
||||||
export class ExtRooms implements ExtRoomsInterface{
|
export class ExtRooms implements ExtRoomsInterface{
|
||||||
userPositionMapByRoom: any;
|
userPositionMapByRoom: any;
|
||||||
@ -10,9 +8,9 @@ export class ExtRooms implements ExtRoomsInterface{
|
|||||||
Worlds: any;
|
Worlds: any;
|
||||||
|
|
||||||
[room: string]: SocketIO.Room;
|
[room: string]: SocketIO.Room;
|
||||||
}
|
};
|
||||||
|
|
||||||
let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server, Worlds: Map<string, World>) {
|
let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server) {
|
||||||
let clients = Io.clients();
|
let clients = Io.clients();
|
||||||
let socketsKey = Object.keys(Io.clients().sockets);
|
let socketsKey = Object.keys(Io.clients().sockets);
|
||||||
|
|
||||||
@ -40,8 +38,8 @@ let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server
|
|||||||
mapPositionUserByRoom.set(data.roomId, dataArray);
|
mapPositionUserByRoom.set(data.roomId, dataArray);
|
||||||
}
|
}
|
||||||
rooms.userPositionMapByRoom = Array.from(mapPositionUserByRoom);
|
rooms.userPositionMapByRoom = Array.from(mapPositionUserByRoom);
|
||||||
}
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
RefreshUserPositionFunction
|
RefreshUserPositionFunction
|
||||||
}
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user