mirror of
https://github.com/shadoll/sLogos.git
synced 2026-08-28 03:28:01 +00:00
Add common logic for achievements, global stats, session management, settings, and sound in quizzes
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
Reference in New Issue
Block a user