Add common logic for achievements, global stats, session management, settings, and sound in quizzes

This commit is contained in:
sha
2025-08-14 15:47:09 +03:00
parent 388b865bdf
commit 71ce614762
5 changed files with 138 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// quizAchievements.js
// Common achievement logic for all quizzes
export function updateAchievementCount(achievementsComponent) {
if (achievementsComponent) {
return achievementsComponent.getAchievementCount();
}
return { unlocked: 0, total: 0 };
}