TrinityCore
AchievementGlobalMgr Class Reference

#include <AchievementMgr.h>

Public Member Functions

 AchievementGlobalMgr (AchievementGlobalMgr const &)=delete
 
 AchievementGlobalMgr (AchievementGlobalMgr &&)=delete
 
AchievementGlobalMgroperator= (AchievementGlobalMgr const &)=delete
 
AchievementGlobalMgroperator= (AchievementGlobalMgr &&)=delete
 
std::vector< AchievementEntry const * > const * GetAchievementByReferencedId (uint32 id) const
 
AchievementReward const * GetAchievementReward (AchievementEntry const *achievement) const
 
AchievementRewardLocale const * GetAchievementRewardLocale (AchievementEntry const *achievement) const
 
bool IsRealmCompleted (AchievementEntry const *achievement) const
 
void SetRealmCompleted (AchievementEntry const *achievement)
 
void LoadAchievementReferenceList ()
 
void LoadAchievementScripts ()
 
void LoadCompletedAchievements ()
 
void LoadRewards ()
 
void LoadRewardLocales ()
 
uint32 GetAchievementScriptId (uint32 achievementId) const
 

Static Public Member Functions

static AchievementGlobalMgrInstance ()
 

Private Member Functions

 AchievementGlobalMgr ()
 
 ~AchievementGlobalMgr ()
 

Private Attributes

std::unordered_map< uint32, std::vector< AchievementEntry const * > > _achievementListByReferencedId
 
std::unordered_map< uint32, SystemTimePoint_allCompletedAchievements
 
std::unordered_map< uint32, AchievementReward_achievementRewards
 
std::unordered_map< uint32, AchievementRewardLocale_achievementRewardLocales
 
std::unordered_map< uint32, uint32_achievementScripts
 

Detailed Description

Definition at line 146 of file AchievementMgr.h.

Constructor & Destructor Documentation

◆ AchievementGlobalMgr() [1/3]

AchievementGlobalMgr::AchievementGlobalMgr ( )
privatedefault

◆ ~AchievementGlobalMgr()

AchievementGlobalMgr::~AchievementGlobalMgr ( )
privatedefault

◆ AchievementGlobalMgr() [2/3]

AchievementGlobalMgr::AchievementGlobalMgr ( AchievementGlobalMgr const &  )
delete

◆ AchievementGlobalMgr() [3/3]

AchievementGlobalMgr::AchievementGlobalMgr ( AchievementGlobalMgr &&  )
delete

Member Function Documentation

◆ GetAchievementByReferencedId()

std::vector< AchievementEntry const * > const * AchievementGlobalMgr::GetAchievementByReferencedId ( uint32  id) const

Definition at line 1053 of file AchievementMgr.cpp.

◆ GetAchievementReward()

AchievementReward const * AchievementGlobalMgr::GetAchievementReward ( AchievementEntry const *  achievement) const

Definition at line 1059 of file AchievementMgr.cpp.

◆ GetAchievementRewardLocale()

AchievementRewardLocale const * AchievementGlobalMgr::GetAchievementRewardLocale ( AchievementEntry const *  achievement) const

Definition at line 1065 of file AchievementMgr.cpp.

◆ GetAchievementScriptId()

uint32 AchievementGlobalMgr::GetAchievementScriptId ( uint32  achievementId) const

Definition at line 1367 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ Instance()

AchievementGlobalMgr * AchievementGlobalMgr::Instance ( )
static

Definition at line 1047 of file AchievementMgr.cpp.

◆ IsRealmCompleted()

bool AchievementGlobalMgr::IsRealmCompleted ( AchievementEntry const *  achievement) const

Definition at line 1071 of file AchievementMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadAchievementReferenceList()

void AchievementGlobalMgr::LoadAchievementReferenceList ( )

Definition at line 1101 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ LoadAchievementScripts()

void AchievementGlobalMgr::LoadAchievementScripts ( )

Definition at line 1135 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ LoadCompletedAchievements()

void AchievementGlobalMgr::LoadCompletedAchievements ( )

Definition at line 1168 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ LoadRewardLocales()

void AchievementGlobalMgr::LoadRewardLocales ( )

Definition at line 1327 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ LoadRewards()

void AchievementGlobalMgr::LoadRewards ( )

Definition at line 1212 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

AchievementGlobalMgr & AchievementGlobalMgr::operator= ( AchievementGlobalMgr &&  )
delete

◆ operator=() [2/2]

AchievementGlobalMgr & AchievementGlobalMgr::operator= ( AchievementGlobalMgr const &  )
delete

◆ SetRealmCompleted()

void AchievementGlobalMgr::SetRealmCompleted ( AchievementEntry const *  achievement)

Definition at line 1092 of file AchievementMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _achievementListByReferencedId

std::unordered_map<uint32, std::vector<AchievementEntry const*> > AchievementGlobalMgr::_achievementListByReferencedId
private

Definition at line 177 of file AchievementMgr.h.

◆ _achievementRewardLocales

std::unordered_map<uint32, AchievementRewardLocale> AchievementGlobalMgr::_achievementRewardLocales
private

Definition at line 185 of file AchievementMgr.h.

◆ _achievementRewards

std::unordered_map<uint32, AchievementReward> AchievementGlobalMgr::_achievementRewards
private

Definition at line 184 of file AchievementMgr.h.

◆ _achievementScripts

std::unordered_map<uint32, uint32> AchievementGlobalMgr::_achievementScripts
private

Definition at line 186 of file AchievementMgr.h.

◆ _allCompletedAchievements

std::unordered_map<uint32 , SystemTimePoint > AchievementGlobalMgr::_allCompletedAchievements
private

Definition at line 182 of file AchievementMgr.h.


The documentation for this class was generated from the following files: