TrinityCore
Loading...
Searching...
No Matches
TraitMgr::PlayerDataAccessor Struct Reference

#include <TraitMgr.h>

Public Member Functions

 PlayerDataAccessor (Player const *player)
 
uint64 GetMoney () const
 
int32 GetCurrencyQuantity (int32 currencyId) const
 
int32 GetLevel () const
 
bool IsQuestRewarded (int32 questId) const
 
bool HasAchieved (int32 achievementId) const
 
uint32 GetPrimarySpecialization () const
 
std::variant< int64, float > GetDataElementAccount (uint32 dataElementId) const
 
std::variant< int64, float > GetDataElementCharacter (uint32 dataElementId) const
 

Private Attributes

Player const * _player
 

Detailed Description

Definition at line 63 of file TraitMgr.h.

Constructor & Destructor Documentation

◆ PlayerDataAccessor()

TraitMgr::PlayerDataAccessor::PlayerDataAccessor ( Player const *  player)
inline

Definition at line 65 of file TraitMgr.h.

Member Function Documentation

◆ GetCurrencyQuantity()

int32 TraitMgr::PlayerDataAccessor::GetCurrencyQuantity ( int32  currencyId) const

Definition at line 31538 of file Player.cpp.

+ Here is the caller graph for this function:

◆ GetDataElementAccount()

std::variant< int64, float > TraitMgr::PlayerDataAccessor::GetDataElementAccount ( uint32  dataElementId) const

Definition at line 31563 of file Player.cpp.

+ Here is the caller graph for this function:

◆ GetDataElementCharacter()

std::variant< int64, float > TraitMgr::PlayerDataAccessor::GetDataElementCharacter ( uint32  dataElementId) const

Definition at line 31568 of file Player.cpp.

+ Here is the caller graph for this function:

◆ GetLevel()

int32 TraitMgr::PlayerDataAccessor::GetLevel ( ) const

Definition at line 31543 of file Player.cpp.

+ Here is the caller graph for this function:

◆ GetMoney()

uint64 TraitMgr::PlayerDataAccessor::GetMoney ( ) const

Definition at line 31533 of file Player.cpp.

+ Here is the caller graph for this function:

◆ GetPrimarySpecialization()

uint32 TraitMgr::PlayerDataAccessor::GetPrimarySpecialization ( ) const

Definition at line 31558 of file Player.cpp.

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

◆ HasAchieved()

bool TraitMgr::PlayerDataAccessor::HasAchieved ( int32  achievementId) const

Definition at line 31553 of file Player.cpp.

+ Here is the caller graph for this function:

◆ IsQuestRewarded()

bool TraitMgr::PlayerDataAccessor::IsQuestRewarded ( int32  questId) const

Definition at line 31548 of file Player.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _player

Player const* TraitMgr::PlayerDataAccessor::_player
private

Definition at line 77 of file TraitMgr.h.


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