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 31464 of file Player.cpp.

Referenced by TraitMgr::FillOwnedCurrenciesMap().

◆ GetDataElementAccount()

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

◆ GetDataElementCharacter()

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

◆ GetLevel()

int32 TraitMgr::PlayerDataAccessor::GetLevel ( ) const

◆ GetMoney()

uint64 TraitMgr::PlayerDataAccessor::GetMoney ( ) const

Definition at line 31459 of file Player.cpp.

Referenced by TraitMgr::FillOwnedCurrenciesMap().

◆ GetPrimarySpecialization()

uint32 TraitMgr::PlayerDataAccessor::GetPrimarySpecialization ( ) const

Definition at line 31484 of file Player.cpp.

References AsUnderlyingType().

Referenced by TraitMgr::MeetsTraitCondition().

◆ HasAchieved()

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

◆ IsQuestRewarded()

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

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: