ingame timer
This commit is contained in:
parent
0dcebdd718
commit
3fdd1ae240
6 changed files with 73 additions and 7 deletions
|
|
@ -78,8 +78,8 @@ app.use('/', async (req, res, next) => {
|
|||
const games = [
|
||||
...Game.getAllGames().map(game => ({
|
||||
id: game.id,
|
||||
started: game.puzzle.data.started,
|
||||
finished: game.puzzle.data.finished,
|
||||
started: Game.getStartTs(game.id),
|
||||
finished: Game.getFinishTs(game.id),
|
||||
tilesFinished: Game.getFinishedTileCount(game.id),
|
||||
tilesTotal: Game.getTileCount(game.id),
|
||||
players: Game.getActivePlayers(game.id).length,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue