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