remove confusing newGame function
This commit is contained in:
parent
7e0bb8357d
commit
85e9d14b02
4 changed files with 12 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue