KF-MMO-Server/Lobby/lobbySocket.ts

17 lines
449 B
TypeScript
Raw Permalink Normal View History

2023-10-10 04:15:28 +08:00
import { loadoutChanged } from "./_loadoutChanged";
import { message } from "./_message";
import { playerJoin } from "./_playerJoin";
2023-09-14 16:59:21 +08:00
export function registerLobbyCallbacks(socket){
2023-09-16 05:42:42 +08:00
socket.on('lobby/playerJoin', (data) => {
2023-10-10 04:15:28 +08:00
playerJoin(socket, data)
2023-09-16 05:42:42 +08:00
});
socket.on('lobby/loadoutChanged', (data) => {
2023-10-10 04:15:28 +08:00
loadoutChanged(socket, data)
2023-09-16 05:42:42 +08:00
});
socket.on('lobby/message', (data) => {
2023-10-10 04:15:28 +08:00
message(socket, data)
2023-09-14 16:59:21 +08:00
});
}