feat: real time achievement track

This commit is contained in:
Zamitto
2024-09-26 13:37:33 -03:00
parent 24d21b9839
commit 5c790edb2c
14 changed files with 181 additions and 407 deletions

View File

@@ -79,7 +79,7 @@ function onOpenGame(game: Game) {
createGame({ ...game, lastTimePlayed: new Date() }).catch(() => {});
}
startGameAchievementObserver(game.id);
startGameAchievementObserver(game);
}
function onTickGame(game: Game) {
@@ -116,6 +116,8 @@ function onTickGame(game: Game) {
})
.catch(() => {});
}
startGameAchievementObserver(game);
}
const onCloseGame = (game: Game) => {