chore(Core/AchievementMgr): add GetAchievement helper (#6121)
This commit is contained in:
parent
584b8d908e
commit
1011594a6a
2 changed files with 8 additions and 0 deletions
|
|
@ -2962,3 +2962,8 @@ void AchievementGlobalMgr::LoadRewardLocales()
|
|||
LOG_INFO("server", ">> Loaded %lu Achievement Reward Locale strings in %u ms", (unsigned long)m_achievementRewardLocales.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
LOG_INFO("server", " ");
|
||||
}
|
||||
|
||||
AchievementEntry const* AchievementGlobalMgr::GetAchievement(uint32 achievementId) const
|
||||
{
|
||||
return sAchievementStore.LookupEntry(achievementId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -368,6 +368,9 @@ public:
|
|||
void LoadCompletedAchievements();
|
||||
void LoadRewards();
|
||||
void LoadRewardLocales();
|
||||
|
||||
[[nodiscard]] AchievementEntry const* GetAchievement(uint32 achievementId) const;
|
||||
|
||||
private:
|
||||
AchievementCriteriaDataMap m_criteriaDataMap;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue