0
0
Fork 0

Adjust function header

This commit is contained in:
Oliver-Akins 2021-02-28 21:58:54 -07:00
parent a99d7716df
commit 4c9db9414f

View file

@ -38,11 +38,15 @@ export default (io: Server, socket: Socket, data: UpdatePlayer) => {
message: `${err.name}: ${err.message}`,
source: `UpdatePlayer`,
});
}
};
};
const modifyPlayer = (io: Server, socket: Socket, data: UpdatePlayer): void => {
export const modifyPlayer = (
io: Server,
socket: Socket,
data: UpdatePlayer
): void => {
let game = games[data.game_code];
let player = game.players.find(x => x.name === data.name);