| 134 | } |
| 135 | |
| 136 | void Statistics::unlockAchievement(String const& name) { |
| 137 | if (achievementUnlocked(name)) |
| 138 | return; |
| 139 | m_achievements.add(name); |
| 140 | if (m_service) |
| 141 | m_service->unlockAchievement(name); |
| 142 | Logger::debug("Achievement get {}", name); |
| 143 | } |
| 144 | |
| 145 | bool Statistics::checkAchievement(String const& achievementName) { |
| 146 | auto statisticsDatabase = Root::singleton().statisticsDatabase(); |
no test coverage detected