remove confusing newGame function

This commit is contained in:
Zutatensuppe 2021-04-30 01:03:43 +02:00
parent 7e0bb8357d
commit 85e9d14b02
4 changed files with 12 additions and 21 deletions

View file

@ -27,19 +27,6 @@ function __createPlayerObject(id, ts) {
}
}
function newGame({id, rng, puzzle, players, evtInfos, scoreMode}) {
const game = {
id: id,
rng: rng,
puzzle: puzzle,
players: players,
evtInfos: evtInfos,
scoreMode: scoreMode,
}
setGame(id, game)
return game
}
function setGame(gameId, game) {
GAMES[gameId] = game
}
@ -740,7 +727,7 @@ function handleInput(gameId, playerId, input, ts) {
export default {
__createPlayerObject,
newGame,
setGame,
exists,
playerExists,
getRelevantPlayers,