TrinityCore
Loading...
Searching...
No Matches
DBCStores.cpp File Reference
#include "DBCStores.h"
#include "DBCFileLoader.h"
#include "DBCfmt.h"
#include "Containers.h"
#include "Errors.h"
#include "IteratorPair.h"
#include "Log.h"
#include "ObjectDefines.h"
#include "Regex.h"
#include "SharedDefines.h"
#include "SpellMgr.h"
#include "Timer.h"
+ Include dependency graph for DBCStores.cpp:

Go to the source code of this file.

Macros

#define LOAD_DBC(store, file)   LoadDBC(availableDbcLocales, bad_dbc_files, store, dbcPath, file)
 
#define LOAD_DBC_EXT(store, file, dbtable, dbformat, dbpk)   LoadDBC(availableDbcLocales, bad_dbc_files, store, dbcPath, file, dbtable, dbformat, dbpk)
 

Typedefs

typedef std::map< uint16, uint32 > AreaFlagByAreaID
 
typedef std::map< uint32, uint32 > AreaFlagByMapID
 
typedef std::map< std::pair< uint32, Difficulty >, MapDifficultyEntry const * > MapDifficultyMap
 
typedef std::tuple< int16, int8, int32 > WMOAreaTableKey
 
typedef std::map< WMOAreaTableKey, WMOAreaTableEntry const * > WMOAreaInfoByTripple
 
typedef std::tuple< uint32, uint32, uint32 > EmotesTextSoundKey
 
typedef std::map< uint32, SimpleFactionsList > FactionTeamMap
 
typedef std::array< std::vector< Trinity::wregex >, TOTAL_LOCALES > NameValidationRegexContainer
 
typedef std::list< std::string > StoreProblemList
 

Functions

template<class T >
void LoadDBC (uint32 &availableDbcLocales, StoreProblemList &errors, DBCStorage< T > &storage, std::string const &dbcPath, std::string const &filename, char const *dbTable=nullptr, char const *dbFormat=nullptr, char const *dbIndexName=nullptr)
 
void LoadDBCStores (const std::string &dataPath)
 
SimpleFactionsList const * GetFactionTeamList (uint32 faction)
 
char const * GetPetName (uint32 petfamily, uint32 dbclang)
 
TalentSpellPos const * GetTalentSpellPos (uint32 spellId)
 
uint32 GetTalentSpellCost (uint32 spellId)
 
WMOAreaTableEntry const * GetWMOAreaTableEntryByTripple (int32 rootid, int32 adtid, int32 groupid)
 
char const * GetRaceName (uint8 race, uint8 locale)
 
char const * GetClassName (uint8 class_, uint8 locale)
 
uint32 GetVirtualMapForMapAndZone (uint32 mapid, uint32 zoneId)
 
ContentLevels GetContentLevelsForMapAndZone (uint32 mapid, uint32 zoneId)
 
bool IsTotemCategoryCompatiableWith (uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId)
 
void Zone2MapCoordinates (float &x, float &y, uint32 zone)
 
void Map2ZoneCoordinates (float &x, float &y, uint32 zone)
 
MapDifficultyEntry const * GetMapDifficultyData (uint32 mapId, Difficulty difficulty)
 
MapDifficultyEntry const * GetDownscaledMapDifficultyData (uint32 mapId, Difficulty &difficulty)
 
PvPDifficultyEntry const * GetBattlegroundBracketByLevel (uint32 mapid, uint32 level)
 
PvPDifficultyEntry const * GetBattlegroundBracketById (uint32 mapid, BattlegroundBracketId id)
 
uint32 const * GetTalentTabPages (uint8 cls)
 
uint32 GetLiquidFlags (uint32 liquidType)
 
CharacterFacialHairStylesEntry const * GetCharFacialHairEntry (uint8 race, uint8 gender, uint8 facialHairID)
 
CharSectionsEntry const * GetCharSectionEntry (uint8 race, CharSectionType genType, uint8 gender, uint8 type, uint8 color)
 
CharStartOutfitEntry const * GetCharStartOutfitEntry (uint8 race, uint8 class_, uint8 gender)
 
LFGDungeonEntry const * GetLFGDungeon (uint32 mapId, Difficulty difficulty)
 Returns LFGDungeonEntry for a specific map and difficulty. Will return first found entry if multiple dungeons use the same map (such as Scarlet Monastery)
 
uint32 GetDefaultMapLight (uint32 mapId)
 
std::vector< SkillLineAbilityEntry const * > const * GetSkillLineAbilitiesBySkill (uint32 skillLine)
 
SkillRaceClassInfoEntry const * GetSkillRaceClassInfo (uint32 skill, uint8 race, uint8 class_)
 
ResponseCodes ValidateName (std::wstring const &name, LocaleConstant locale)
 
EmotesTextSoundEntry const * FindTextSoundEmoteFor (uint32 emote, uint32 race, uint32 gender)
 

Variables

DBCStorage< AreaTableEntry > sAreaTableStore (AreaTableEntryfmt)
 
DBCStorage< AreaGroupEntry > sAreaGroupStore (AreaGroupEntryfmt)
 
static WMOAreaInfoByTripple sWMOAreaInfoByTripple
 
DBCStorage< AchievementEntry > sAchievementStore (Achievementfmt)
 
DBCStorage< AchievementCriteriaEntry > sAchievementCriteriaStore (AchievementCriteriafmt)
 
DBCStorage< AreaTriggerEntry > sAreaTriggerStore (AreaTriggerEntryfmt)
 
DBCStorage< AuctionHouseEntry > sAuctionHouseStore (AuctionHouseEntryfmt)
 
DBCStorage< BankBagSlotPricesEntry > sBankBagSlotPricesStore (BankBagSlotPricesEntryfmt)
 
DBCStorage< BannedAddOnsEntry > sBannedAddOnsStore (BannedAddOnsfmt)
 
DBCStorage< BattlemasterListEntry > sBattlemasterListStore (BattlemasterListEntryfmt)
 
DBCStorage< BarberShopStyleEntry > sBarberShopStyleStore (BarberShopStyleEntryfmt)
 
DBCStorage< CharacterFacialHairStylesEntry > sCharacterFacialHairStylesStore (CharacterFacialHairStylesfmt)
 
std::unordered_map< uint32, CharacterFacialHairStylesEntry const * > sCharFacialHairMap
 
DBCStorage< CharSectionsEntry > sCharSectionsStore (CharSectionsEntryfmt)
 
std::unordered_multimap< uint32, CharSectionsEntry const * > sCharSectionMap
 
DBCStorage< CharStartOutfitEntry > sCharStartOutfitStore (CharStartOutfitEntryfmt)
 
std::map< uint32, CharStartOutfitEntry const * > sCharStartOutfitMap
 
DBCStorage< CharTitlesEntry > sCharTitlesStore (CharTitlesEntryfmt)
 
DBCStorage< ChatChannelsEntry > sChatChannelsStore (ChatChannelsEntryfmt)
 
DBCStorage< ChrClassesEntry > sChrClassesStore (ChrClassesEntryfmt)
 
DBCStorage< ChrRacesEntry > sChrRacesStore (ChrRacesEntryfmt)
 
DBCStorage< CinematicCameraEntry > sCinematicCameraStore (CinematicCameraEntryfmt)
 
DBCStorage< CinematicSequencesEntry > sCinematicSequencesStore (CinematicSequencesEntryfmt)
 
DBCStorage< CreatureDisplayInfoEntry > sCreatureDisplayInfoStore (CreatureDisplayInfofmt)
 
DBCStorage< CreatureDisplayInfoExtraEntry > sCreatureDisplayInfoExtraStore (CreatureDisplayInfoExtrafmt)
 
DBCStorage< CreatureFamilyEntry > sCreatureFamilyStore (CreatureFamilyfmt)
 
DBCStorage< CreatureModelDataEntry > sCreatureModelDataStore (CreatureModelDatafmt)
 
DBCStorage< CreatureSpellDataEntry > sCreatureSpellDataStore (CreatureSpellDatafmt)
 
DBCStorage< CreatureTypeEntry > sCreatureTypeStore (CreatureTypefmt)
 
DBCStorage< CurrencyTypesEntry > sCurrencyTypesStore (CurrencyTypesfmt)
 
DBCStorage< DestructibleModelDataEntry > sDestructibleModelDataStore (DestructibleModelDatafmt)
 
DBCStorage< DungeonEncounterEntry > sDungeonEncounterStore (DungeonEncounterfmt)
 
DBCStorage< DurabilityQualityEntry > sDurabilityQualityStore (DurabilityQualityfmt)
 
DBCStorage< DurabilityCostsEntry > sDurabilityCostsStore (DurabilityCostsfmt)
 
DBCStorage< EmotesEntry > sEmotesStore (EmotesEntryfmt)
 
DBCStorage< EmotesTextEntry > sEmotesTextStore (EmotesTextEntryfmt)
 
static std::map< EmotesTextSoundKey, EmotesTextSoundEntry const * > sEmotesTextSoundMap
 
DBCStorage< EmotesTextSoundEntry > sEmotesTextSoundStore (EmotesTextSoundEntryfmt)
 
static FactionTeamMap sFactionTeamMap
 
DBCStorage< FactionEntry > sFactionStore (FactionEntryfmt)
 
DBCStorage< FactionTemplateEntry > sFactionTemplateStore (FactionTemplateEntryfmt)
 
DBCStorage< GameObjectArtKitEntry > sGameObjectArtKitStore (GameObjectArtKitfmt)
 
DBCStorage< GameObjectDisplayInfoEntry > sGameObjectDisplayInfoStore (GameObjectDisplayInfofmt)
 
DBCStorage< GemPropertiesEntry > sGemPropertiesStore (GemPropertiesEntryfmt)
 
DBCStorage< GlyphPropertiesEntry > sGlyphPropertiesStore (GlyphPropertiesfmt)
 
DBCStorage< GlyphSlotEntry > sGlyphSlotStore (GlyphSlotfmt)
 
DBCStorage< GtBarberShopCostBaseEntry > sGtBarberShopCostBaseStore (GtBarberShopCostBasefmt)
 
DBCStorage< GtCombatRatingsEntry > sGtCombatRatingsStore (GtCombatRatingsfmt)
 
DBCStorage< GtChanceToMeleeCritBaseEntry > sGtChanceToMeleeCritBaseStore (GtChanceToMeleeCritBasefmt)
 
DBCStorage< GtChanceToMeleeCritEntry > sGtChanceToMeleeCritStore (GtChanceToMeleeCritfmt)
 
DBCStorage< GtChanceToSpellCritBaseEntry > sGtChanceToSpellCritBaseStore (GtChanceToSpellCritBasefmt)
 
DBCStorage< GtChanceToSpellCritEntry > sGtChanceToSpellCritStore (GtChanceToSpellCritfmt)
 
DBCStorage< GtNPCManaCostScalerEntry > sGtNPCManaCostScalerStore (GtNPCManaCostScalerfmt)
 
DBCStorage< GtOCTClassCombatRatingScalarEntry > sGtOCTClassCombatRatingScalarStore (GtOCTClassCombatRatingScalarfmt)
 
DBCStorage< GtOCTRegenHPEntry > sGtOCTRegenHPStore (GtOCTRegenHPfmt)
 
DBCStorage< GtRegenHPPerSptEntry > sGtRegenHPPerSptStore (GtRegenHPPerSptfmt)
 
DBCStorage< GtRegenMPPerSptEntry > sGtRegenMPPerSptStore (GtRegenMPPerSptfmt)
 
DBCStorage< HolidaysEntry > sHolidaysStore (Holidaysfmt)
 
DBCStorage< ItemEntry > sItemStore (Itemfmt)
 
DBCStorage< ItemBagFamilyEntry > sItemBagFamilyStore (ItemBagFamilyfmt)
 
DBCStorage< ItemExtendedCostEntry > sItemExtendedCostStore (ItemExtendedCostEntryfmt)
 
DBCStorage< ItemLimitCategoryEntry > sItemLimitCategoryStore (ItemLimitCategoryEntryfmt)
 
DBCStorage< ItemRandomPropertiesEntry > sItemRandomPropertiesStore (ItemRandomPropertiesfmt)
 
DBCStorage< ItemRandomSuffixEntry > sItemRandomSuffixStore (ItemRandomSuffixfmt)
 
DBCStorage< ItemSetEntry > sItemSetStore (ItemSetEntryfmt)
 
DBCStorage< LFGDungeonEntry > sLFGDungeonStore (LFGDungeonEntryfmt)
 
DBCStorage< LFGDungeonExpansionEntry > sLFGDungeonExpansionStore (LFGDungeonExpansionfmt)
 
DBCStorage< LightEntry > sLightStore (LightEntryfmt)
 
DBCStorage< LiquidTypeEntry > sLiquidTypeStore (LiquidTypefmt)
 
DBCStorage< LockEntry > sLockStore (LockEntryfmt)
 
DBCStorage< MailTemplateEntry > sMailTemplateStore (MailTemplateEntryfmt)
 
DBCStorage< MapEntry > sMapStore (MapEntryfmt)
 
DBCStorage< MapDifficultyEntry > sMapDifficultyStore (MapDifficultyEntryfmt)
 
static MapDifficultyMap sMapDifficultyMap
 
DBCStorage< MovieEntry > sMovieStore (MovieEntryfmt)
 
DBCStorage< NamesProfanityEntry > sNamesProfanityStore (NamesProfanityEntryfmt)
 
DBCStorage< NamesReservedEntry > sNamesReservedStore (NamesReservedEntryfmt)
 
NameValidationRegexContainer NamesProfaneValidators
 
NameValidationRegexContainer NamesReservedValidators
 
DBCStorage< OverrideSpellDataEntry > sOverrideSpellDataStore (OverrideSpellDatafmt)
 
DBCStorage< PowerDisplayEntry > sPowerDisplayStore (PowerDisplayfmt)
 
DBCStorage< PvPDifficultyEntry > sPvPDifficultyStore (PvPDifficultyfmt)
 
DBCStorage< QuestSortEntry > sQuestSortStore (QuestSortEntryfmt)
 
DBCStorage< QuestXPEntry > sQuestXPStore (QuestXPfmt)
 
DBCStorage< QuestFactionRewEntry > sQuestFactionRewardStore (QuestFactionRewardfmt)
 
DBCStorage< RandPropPointsEntry > sRandPropPointsStore (RandPropPointsfmt)
 
DBCStorage< ScalingStatDistributionEntry > sScalingStatDistributionStore (ScalingStatDistributionfmt)
 
DBCStorage< ScalingStatValuesEntry > sScalingStatValuesStore (ScalingStatValuesfmt)
 
DBCStorage< SkillLineEntry > sSkillLineStore (SkillLinefmt)
 
DBCStorage< SkillLineAbilityEntry > sSkillLineAbilityStore (SkillLineAbilityfmt)
 
DBCStorage< SkillRaceClassInfoEntry > sSkillRaceClassInfoStore (SkillRaceClassInfofmt)
 
std::unordered_map< uint32, std::vector< SkillLineAbilityEntry const * > > SkillLineAbilitiesBySkill
 
SkillRaceClassInfoMap SkillRaceClassInfoBySkill
 
DBCStorage< SkillTiersEntry > sSkillTiersStore (SkillTiersfmt)
 
DBCStorage< SoundEntriesEntry > sSoundEntriesStore (SoundEntriesfmt)
 
DBCStorage< SpellItemEnchantmentEntry > sSpellItemEnchantmentStore (SpellItemEnchantmentfmt)
 
DBCStorage< SpellItemEnchantmentConditionEntry > sSpellItemEnchantmentConditionStore (SpellItemEnchantmentConditionfmt)
 
DBCStorage< SpellEntry > sSpellStore (SpellEntryfmt)
 
PetFamilySpellsStore sPetFamilySpellsStore
 
DBCStorage< SpellCastTimesEntry > sSpellCastTimesStore (SpellCastTimefmt)
 
DBCStorage< SpellCategoryEntry > sSpellCategoryStore (SpellCategoryfmt)
 
DBCStorage< SpellDifficultyEntry > sSpellDifficultyStore (SpellDifficultyfmt)
 
DBCStorage< SpellDurationEntry > sSpellDurationStore (SpellDurationfmt)
 
DBCStorage< SpellFocusObjectEntry > sSpellFocusObjectStore (SpellFocusObjectfmt)
 
DBCStorage< SpellRadiusEntry > sSpellRadiusStore (SpellRadiusfmt)
 
DBCStorage< SpellRangeEntry > sSpellRangeStore (SpellRangefmt)
 
DBCStorage< SpellRuneCostEntry > sSpellRuneCostStore (SpellRuneCostfmt)
 
DBCStorage< SpellShapeshiftFormEntry > sSpellShapeshiftFormStore (SpellShapeshiftFormfmt)
 
DBCStorage< SpellVisualEntry > sSpellVisualStore (SpellVisualfmt)
 
DBCStorage< StableSlotPricesEntry > sStableSlotPricesStore (StableSlotPricesfmt)
 
DBCStorage< SummonPropertiesEntry > sSummonPropertiesStore (SummonPropertiesfmt)
 
DBCStorage< TalentEntry > sTalentStore (TalentEntryfmt)
 
TalentSpellPosMap sTalentSpellPosMap
 
std::unordered_set< uint32 > sPetTalentSpells
 
DBCStorage< TalentTabEntry > sTalentTabStore (TalentTabEntryfmt)
 
static uint32 sTalentTabPages [MAX_CLASSES][3]
 
DBCStorage< TaxiNodesEntry > sTaxiNodesStore (TaxiNodesEntryfmt)
 
TaxiMask sTaxiNodesMask
 
TaxiMask sOldContinentsNodesMask
 
TaxiMask sHordeTaxiNodesMask
 
TaxiMask sAllianceTaxiNodesMask
 
TaxiMask sDeathKnightTaxiNodesMask
 
TaxiPathSetBySource sTaxiPathSetBySource
 
DBCStorage< TaxiPathEntry > sTaxiPathStore (TaxiPathEntryfmt)
 
TaxiPathNodesByPath sTaxiPathNodesByPath
 
static DBCStorage< TaxiPathNodeEntry > sTaxiPathNodeStore (TaxiPathNodeEntryfmt)
 
DBCStorage< TeamContributionPointsEntry > sTeamContributionPointsStore (TeamContributionPointsfmt)
 
DBCStorage< TotemCategoryEntry > sTotemCategoryStore (TotemCategoryEntryfmt)
 
DBCStorage< TransportAnimationEntry > sTransportAnimationStore (TransportAnimationfmt)
 
DBCStorage< TransportRotationEntry > sTransportRotationStore (TransportRotationfmt)
 
DBCStorage< VehicleEntry > sVehicleStore (VehicleEntryfmt)
 
DBCStorage< VehicleSeatEntry > sVehicleSeatStore (VehicleSeatEntryfmt)
 
DBCStorage< WMOAreaTableEntry > sWMOAreaTableStore (WMOAreaTableEntryfmt)
 
DBCStorage< WorldMapAreaEntry > sWorldMapAreaStore (WorldMapAreaEntryfmt)
 
DBCStorage< WorldMapOverlayEntry > sWorldMapOverlayStore (WorldMapOverlayEntryfmt)
 
DBCStorage< WorldSafeLocsEntry > sWorldSafeLocsStore (WorldSafeLocsEntryfmt)
 
uint32 DBCFileCount = 0
 

Macro Definition Documentation

◆ LOAD_DBC

#define LOAD_DBC (   store,
  file 
)    LoadDBC(availableDbcLocales, bad_dbc_files, store, dbcPath, file)

◆ LOAD_DBC_EXT

#define LOAD_DBC_EXT (   store,
  file,
  dbtable,
  dbformat,
  dbpk 
)    LoadDBC(availableDbcLocales, bad_dbc_files, store, dbcPath, file, dbtable, dbformat, dbpk)

Typedef Documentation

◆ AreaFlagByAreaID

typedef std::map<uint16, uint32> AreaFlagByAreaID

Definition at line 36 of file DBCStores.cpp.

◆ AreaFlagByMapID

typedef std::map<uint32, uint32> AreaFlagByMapID

Definition at line 37 of file DBCStores.cpp.

◆ EmotesTextSoundKey

typedef std::tuple<uint32, uint32, uint32> EmotesTextSoundKey

Definition at line 82 of file DBCStores.cpp.

◆ FactionTeamMap

Definition at line 86 of file DBCStores.cpp.

◆ MapDifficultyMap

typedef std::map<std::pair<uint32, Difficulty>, MapDifficultyEntry const*> MapDifficultyMap

Definition at line 38 of file DBCStores.cpp.

◆ NameValidationRegexContainer

typedef std::array<std::vector<Trinity::wregex>, TOTAL_LOCALES> NameValidationRegexContainer

Definition at line 141 of file DBCStores.cpp.

◆ StoreProblemList

typedef std::list<std::string> StoreProblemList

Definition at line 218 of file DBCStores.cpp.

◆ WMOAreaInfoByTripple

Definition at line 40 of file DBCStores.cpp.

◆ WMOAreaTableKey

typedef std::tuple<int16, int8, int32> WMOAreaTableKey

Definition at line 39 of file DBCStores.cpp.

Function Documentation

◆ FindTextSoundEmoteFor()

EmotesTextSoundEntry const * FindTextSoundEmoteFor ( uint32  emote,
uint32  race,
uint32  gender 
)

Definition at line 977 of file DBCStores.cpp.

References sEmotesTextSoundMap.

Referenced by spell_item_toy_train_set_pulse::HandleDummy().

◆ GetBattlegroundBracketById()

PvPDifficultyEntry const * GetBattlegroundBracketById ( uint32  mapid,
BattlegroundBracketId  id 
)

◆ GetBattlegroundBracketByLevel()

◆ GetCharFacialHairEntry()

CharacterFacialHairStylesEntry const * GetCharFacialHairEntry ( uint8  race,
uint8  gender,
uint8  facialHairID 
)

Definition at line 878 of file DBCStores.cpp.

References sCharFacialHairMap.

Referenced by Player::ValidateAppearance().

◆ GetCharSectionEntry()

CharSectionsEntry const * GetCharSectionEntry ( uint8  race,
CharSectionType  genType,
uint8  gender,
uint8  type,
uint8  color 
)

Definition at line 887 of file DBCStores.cpp.

References Trinity::Containers::MapEqualRange(), and sCharSectionMap.

Referenced by Player::ValidateAppearance().

◆ GetCharStartOutfitEntry()

CharStartOutfitEntry const * GetCharStartOutfitEntry ( uint8  race,
uint8  class_,
uint8  gender 
)

Definition at line 899 of file DBCStores.cpp.

References sCharStartOutfitMap.

Referenced by Player::Create(), and ObjectMgr::PlayerCreateInfoAddItemHelper().

◆ GetClassName()

char const * GetClassName ( uint8  class_,
uint8  locale 
)

Definition at line 721 of file DBCStores.cpp.

References ChrClassesEntry::Name, and sChrClassesStore.

Referenced by misc_commandscript::HandlePInfoCommand().

◆ GetContentLevelsForMapAndZone()

ContentLevels GetContentLevelsForMapAndZone ( uint32  mapid,
uint32  zoneId 
)

◆ GetDefaultMapLight()

◆ GetDownscaledMapDifficultyData()

◆ GetFactionTeamList()

SimpleFactionsList const * GetFactionTeamList ( uint32  faction)

Definition at line 670 of file DBCStores.cpp.

References sFactionTeamMap.

Referenced by ReputationMgr::SetReputation().

◆ GetLFGDungeon()

LFGDungeonEntry const * GetLFGDungeon ( uint32  mapId,
Difficulty  difficulty 
)

Returns LFGDungeonEntry for a specific map and difficulty. Will return first found entry if multiple dungeons use the same map (such as Scarlet Monastery)

Definition at line 909 of file DBCStores.cpp.

References LFGDungeonEntry::Difficulty, LFGDungeonEntry::MapID, and sLFGDungeonStore.

Referenced by Player::RewardReputation().

◆ GetLiquidFlags()

uint32 GetLiquidFlags ( uint32  liquidType)

Definition at line 870 of file DBCStores.cpp.

References sLiquidTypeStore.

Referenced by MMAP::TerrainBuilder::loadVMap(), and World::SetInitialWorldSettings().

◆ GetMapDifficultyData()

◆ GetPetName()

char const * GetPetName ( uint32  petfamily,
uint32  dbclang 
)

Definition at line 679 of file DBCStores.cpp.

References CreatureFamilyEntry::Name, and sCreatureFamilyStore.

Referenced by ObjectMgr::GeneratePetName().

◆ GetRaceName()

char const * GetRaceName ( uint8  race,
uint8  locale 
)

Definition at line 715 of file DBCStores.cpp.

References ChrRacesEntry::Name, and sChrRacesStore.

Referenced by misc_commandscript::HandlePInfoCommand().

◆ GetSkillLineAbilitiesBySkill()

◆ GetSkillRaceClassInfo()

◆ GetTalentSpellCost()

◆ GetTalentSpellPos()

TalentSpellPos const * GetTalentSpellPos ( uint32  spellId)

◆ GetTalentTabPages()

uint32 const * GetTalentTabPages ( uint8  cls)

Definition at line 865 of file DBCStores.cpp.

References sTalentTabPages.

Referenced by Player::BuildPlayerTalentsInfoData().

◆ GetVirtualMapForMapAndZone()

uint32 GetVirtualMapForMapAndZone ( uint32  mapid,
uint32  zoneId 
)

◆ GetWMOAreaTableEntryByTripple()

WMOAreaTableEntry const * GetWMOAreaTableEntryByTripple ( int32  rootid,
int32  adtid,
int32  groupid 
)

Definition at line 706 of file DBCStores.cpp.

References sWMOAreaInfoByTripple.

Referenced by Map::GetAreaId(), and Map::GetFullTerrainStatusForPosition().

◆ IsTotemCategoryCompatiableWith()

bool IsTotemCategoryCompatiableWith ( uint32  itemTotemCategoryId,
uint32  requiredTotemCategoryId 
)

◆ LoadDBC()

template<class T >
void LoadDBC ( uint32 &  availableDbcLocales,
StoreProblemList &  errors,
DBCStorage< T > &  storage,
std::string const &  dbcPath,
std::string const &  filename,
char const *  dbTable = nullptr,
char const *  dbFormat = nullptr,
char const *  dbIndexName = nullptr 
)
inline

◆ LoadDBCStores()

void LoadDBCStores ( const std::string &  dataPath)

Definition at line 269 of file DBCStores.cpp.

References CustomAchievementfmt, CustomAchievementIndex, CustomSpellDifficultyfmt, CustomSpellDifficultyIndex, CustomSpellEntryfmt, CustomSpellEntryIndex, getMSTime(), LOAD_DBC, LOAD_DBC_EXT, RACEMASK_ALL_PLAYABLE, sAchievementCriteriaStore, sAchievementStore, sAreaGroupStore, sAreaTableStore, sAreaTriggerStore, sAuctionHouseStore, sBankBagSlotPricesStore, sBannedAddOnsStore, sBarberShopStyleStore, sBattlemasterListStore, sCharacterFacialHairStylesStore, sCharFacialHairMap, sCharSectionsStore, sCharStartOutfitStore, sCharTitlesStore, sChatChannelsStore, sChrClassesStore, sChrRacesStore, sCinematicCameraStore, sCinematicSequencesStore, sCreatureDisplayInfoExtraStore, sCreatureDisplayInfoStore, sCreatureFamilyStore, sCreatureModelDataStore, sCreatureSpellDataStore, sCreatureTypeStore, sCurrencyTypesStore, sDestructibleModelDataStore, sDungeonEncounterStore, sDurabilityCostsStore, sDurabilityQualityStore, sEmotesStore, sEmotesTextSoundStore, sEmotesTextStore, sFactionStore, sFactionTemplateStore, sGameObjectArtKitStore, sGameObjectDisplayInfoStore, sGemPropertiesStore, sGlyphPropertiesStore, sGlyphSlotStore, sGtBarberShopCostBaseStore, sGtChanceToMeleeCritBaseStore, sGtChanceToMeleeCritStore, sGtChanceToSpellCritBaseStore, sGtChanceToSpellCritStore, sGtCombatRatingsStore, sGtNPCManaCostScalerStore, sGtOCTClassCombatRatingScalarStore, sGtOCTRegenHPStore, sGtRegenHPPerSptStore, sGtRegenMPPerSptStore, sHolidaysStore, sItemBagFamilyStore, sItemExtendedCostStore, sItemLimitCategoryStore, sItemRandomPropertiesStore, sItemRandomSuffixStore, sItemSetStore, sItemStore, sLFGDungeonExpansionStore, sLFGDungeonStore, sLightStore, sLiquidTypeStore, sLockStore, sMailTemplateStore, sMapDifficultyStore, sMapStore, sMovieStore, sNamesProfanityStore, sNamesReservedStore, sOverrideSpellDataStore, sPowerDisplayStore, sPvPDifficultyStore, sQuestFactionRewardStore, sQuestSortStore, sQuestXPStore, sRandPropPointsStore, sScalingStatDistributionStore, sScalingStatValuesStore, sSkillLineAbilityStore, sSkillLineStore, sSkillRaceClassInfoStore, sSkillTiersStore, sSoundEntriesStore, sSpellCastTimesStore, sSpellCategoryStore, sSpellDifficultyStore, sSpellDurationStore, sSpellFocusObjectStore, sSpellItemEnchantmentConditionStore, sSpellItemEnchantmentStore, sSpellRadiusStore, sSpellRangeStore, sSpellRuneCostStore, sSpellShapeshiftFormStore, sSpellStore, sSpellVisualStore, sStableSlotPricesStore, sSummonPropertiesStore, sTalentStore, sTalentTabStore, sTaxiNodesStore, sTaxiPathNodeStore, sTaxiPathStore, sTeamContributionPointsStore, sTotemCategoryStore, sTransportAnimationStore, sTransportRotationStore, sVehicleSeatStore, sVehicleStore, sWMOAreaTableStore, sWorldMapAreaStore, sWorldMapOverlayStore, and sWorldSafeLocsStore.

Referenced by World::SetInitialWorldSettings().

◆ Map2ZoneCoordinates()

void Map2ZoneCoordinates ( float &  x,
float &  y,
uint32  zone 
)

◆ ValidateName()

◆ Zone2MapCoordinates()

void Zone2MapCoordinates ( float &  x,
float &  y,
uint32  zone 
)

Variable Documentation

◆ DBCFileCount

uint32 DBCFileCount = 0

Definition at line 220 of file DBCStores.cpp.

Referenced by LoadDBC().

◆ NamesProfaneValidators

NameValidationRegexContainer NamesProfaneValidators

Definition at line 142 of file DBCStores.cpp.

Referenced by ValidateName().

◆ NamesReservedValidators

NameValidationRegexContainer NamesReservedValidators

Definition at line 143 of file DBCStores.cpp.

Referenced by ValidateName().

◆ sAchievementCriteriaStore

◆ sAchievementStore

◆ sAllianceTaxiNodesMask

TaxiMask sAllianceTaxiNodesMask

Definition at line 196 of file DBCStores.cpp.

Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().

◆ sAreaGroupStore

◆ sAreaTableStore

◆ sAreaTriggerStore

◆ sAuctionHouseStore

◆ sBankBagSlotPricesStore

◆ sBannedAddOnsStore

◆ sBarberShopStyleStore

◆ sBattlemasterListStore

◆ sCharacterFacialHairStylesStore

◆ sCharFacialHairMap

std::unordered_map<uint32, CharacterFacialHairStylesEntry const*> sCharFacialHairMap

Definition at line 56 of file DBCStores.cpp.

Referenced by GetCharFacialHairEntry(), and LoadDBCStores().

◆ sCharSectionMap

std::unordered_multimap<uint32, CharSectionsEntry const*> sCharSectionMap

Definition at line 58 of file DBCStores.cpp.

Referenced by GetCharSectionEntry().

◆ sCharSectionsStore

◆ sCharStartOutfitMap

std::map<uint32, CharStartOutfitEntry const*> sCharStartOutfitMap

Definition at line 60 of file DBCStores.cpp.

Referenced by GetCharStartOutfitEntry().

◆ sCharStartOutfitStore

◆ sCharTitlesStore

◆ sChatChannelsStore

◆ sChrClassesStore

◆ sChrRacesStore

◆ sCinematicCameraStore

◆ sCinematicSequencesStore

◆ sCreatureDisplayInfoExtraStore

◆ sCreatureDisplayInfoStore

◆ sCreatureFamilyStore

◆ sCreatureModelDataStore

◆ sCreatureSpellDataStore

◆ sCreatureTypeStore

◆ sCurrencyTypesStore

◆ sDeathKnightTaxiNodesMask

TaxiMask sDeathKnightTaxiNodesMask

Definition at line 197 of file DBCStores.cpp.

Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().

◆ sDestructibleModelDataStore

◆ sDungeonEncounterStore

◆ sDurabilityCostsStore

◆ sDurabilityQualityStore

◆ sEmotesStore

◆ sEmotesTextSoundMap

std::map<EmotesTextSoundKey, EmotesTextSoundEntry const*> sEmotesTextSoundMap
static

Definition at line 83 of file DBCStores.cpp.

Referenced by FindTextSoundEmoteFor().

◆ sEmotesTextSoundStore

◆ sEmotesTextStore

◆ sFactionStore

◆ sFactionTeamMap

FactionTeamMap sFactionTeamMap
static

Definition at line 87 of file DBCStores.cpp.

Referenced by GetFactionTeamList().

◆ sFactionTemplateStore

◆ sGameObjectArtKitStore

◆ sGameObjectDisplayInfoStore

◆ sGemPropertiesStore

◆ sGlyphPropertiesStore

◆ sGlyphSlotStore

◆ sGtBarberShopCostBaseStore

◆ sGtChanceToMeleeCritBaseStore

◆ sGtChanceToMeleeCritStore

◆ sGtChanceToSpellCritBaseStore

◆ sGtChanceToSpellCritStore

◆ sGtCombatRatingsStore

◆ sGtNPCManaCostScalerStore

◆ sGtOCTClassCombatRatingScalarStore

◆ sGtOCTRegenHPStore

◆ sGtRegenHPPerSptStore

◆ sGtRegenMPPerSptStore

◆ sHolidaysStore

◆ sHordeTaxiNodesMask

TaxiMask sHordeTaxiNodesMask

Definition at line 195 of file DBCStores.cpp.

Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().

◆ sItemBagFamilyStore

◆ sItemExtendedCostStore

◆ sItemLimitCategoryStore

◆ sItemRandomPropertiesStore

◆ sItemRandomSuffixStore

◆ sItemSetStore

◆ sItemStore

◆ SkillLineAbilitiesBySkill

std::unordered_map<uint32, std::vector<SkillLineAbilityEntry const*> > SkillLineAbilitiesBySkill

Definition at line 160 of file DBCStores.cpp.

Referenced by GetSkillLineAbilitiesBySkill().

◆ SkillRaceClassInfoBySkill

SkillRaceClassInfoMap SkillRaceClassInfoBySkill

Definition at line 161 of file DBCStores.cpp.

Referenced by GetSkillRaceClassInfo().

◆ sLFGDungeonExpansionStore

◆ sLFGDungeonStore

◆ sLightStore

◆ sLiquidTypeStore

◆ sLockStore

◆ sMailTemplateStore

◆ sMapDifficultyMap

MapDifficultyMap sMapDifficultyMap
static

Definition at line 135 of file DBCStores.cpp.

Referenced by GetMapDifficultyData().

◆ sMapDifficultyStore

◆ sMapStore

Referenced by Group::_homebindIfInstance(), Player::_LoadBoundInstances(), Player::_LoadHomeBind(), InstanceSaveManager::_ResetOrWarnAll(), KillRewarder::_RewardGroup(), InstanceSaveManager::AddInstanceSave(), Spell::CheckCast(), SpellInfo::CheckLocation(), MapManager::CreateBaseMap(), MapInstanced::CreateInstance(), TransportMgr::CreateTransport(), TransportMgr::GeneratePath(), Group::GetBoundInstance(), ObjectMgr::GetClosestGraveyard(), GetContentLevelsForMapAndZone(), WorldLocation::GetDebugInfo(), ObjectMgr::GetGoBackTrigger(), Player::GetInstanceSave(), InstanceSave::GetMapEntry(), InstanceSave::GetResetTimeForDB(), Player::GetZoneIdFromDB(), disable_commandscript::HandleAddDisables(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleCalendarGetCalendar(), debug_commandscript::HandleDebugRaidResetCommand(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoInstanceCommand(), misc_commandscript::HandleGPSCommand(), lookup_commandscript::HandleLookupMapCommand(), lookup_commandscript::HandleLookupMapIdCommand(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandleQueryCorpseLocation(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), ConditionMgr::isConditionTypeValid(), DisableMgr::IsDisabledFor(), SmartAIMgr::IsEventValid(), AchievementCriteriaData::IsValid(), MapManager::IsValidMAP(), Player::KillPlayer(), ObjectMgr::LoadAreaTriggerTeleports(), BattlegroundMgr::LoadBattlegroundTemplates(), Player::LoadCorpse(), ObjectMgr::LoadCreatures(), LoadDBCStores(), DisableMgr::LoadDisables(), Player::LoadFromDB(), ObjectMgr::LoadGameObjects(), GroupMgr::LoadGroups(), ObjectMgr::LoadItemTemplates(), ObjectMgr::LoadLinkedRespawn(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadScripts(), SpellMgr::LoadSpellTargetPositions(), ObjectMgr::LoadTempSummons(), MapManager::PlayerCannotEnter(), Player::ResetInstances(), Group::ResetInstances(), Player::Satisfy(), ObjectMgr::SetCreatureLinkedRespawn(), World::SetInitialWorldSettings(), and Player::TeleportTo().

◆ sMovieStore

◆ sNamesProfanityStore

◆ sNamesReservedStore

◆ sOldContinentsNodesMask

TaxiMask sOldContinentsNodesMask

Definition at line 194 of file DBCStores.cpp.

Referenced by PlayerTaxi::InitTaxiNodesForLevel().

◆ sOverrideSpellDataStore

◆ sPetFamilySpellsStore

PetFamilySpellsStore sPetFamilySpellsStore

Definition at line 170 of file DBCStores.cpp.

Referenced by Pet::LearnPetPassives().

◆ sPetTalentSpells

std::unordered_set<uint32> sPetTalentSpells

Definition at line 186 of file DBCStores.cpp.

Referenced by Pet::resetTalentsForAllPetsOf().

◆ sPowerDisplayStore

◆ sPvPDifficultyStore

◆ sQuestFactionRewardStore

◆ sQuestSortStore

◆ sQuestXPStore

◆ sRandPropPointsStore

◆ sScalingStatDistributionStore

◆ sScalingStatValuesStore

◆ sSkillLineAbilityStore

◆ sSkillLineStore

◆ sSkillRaceClassInfoStore

◆ sSkillTiersStore

◆ sSoundEntriesStore

◆ sSpellCastTimesStore

◆ sSpellCategoryStore

◆ sSpellDifficultyStore

◆ sSpellDurationStore

◆ sSpellFocusObjectStore

◆ sSpellItemEnchantmentConditionStore

◆ sSpellItemEnchantmentStore

◆ sSpellRadiusStore

◆ sSpellRangeStore

◆ sSpellRuneCostStore

◆ sSpellShapeshiftFormStore

◆ sSpellStore

◆ sSpellVisualStore

◆ sStableSlotPricesStore

◆ sSummonPropertiesStore

◆ sTalentSpellPosMap

TalentSpellPosMap sTalentSpellPosMap

Definition at line 185 of file DBCStores.cpp.

Referenced by GetTalentSpellPos().

◆ sTalentStore

◆ sTalentTabPages

uint32 sTalentTabPages[MAX_CLASSES][3]
static

Definition at line 190 of file DBCStores.cpp.

Referenced by GetTalentTabPages().

◆ sTalentTabStore

◆ sTaxiNodesMask

◆ sTaxiNodesStore

◆ sTaxiPathNodesByPath

◆ sTaxiPathNodeStore

Referenced by LoadDBCStores().

◆ sTaxiPathSetBySource

TaxiPathSetBySource sTaxiPathSetBySource

Definition at line 200 of file DBCStores.cpp.

Referenced by ObjectMgr::GetTaxiPath().

◆ sTaxiPathStore

◆ sTeamContributionPointsStore

◆ sTotemCategoryStore

◆ sTransportAnimationStore

◆ sTransportRotationStore

◆ sVehicleSeatStore

◆ sVehicleStore

◆ sWMOAreaInfoByTripple

WMOAreaInfoByTripple sWMOAreaInfoByTripple
static

Definition at line 45 of file DBCStores.cpp.

Referenced by GetWMOAreaTableEntryByTripple().

◆ sWMOAreaTableStore

◆ sWorldMapAreaStore

◆ sWorldMapOverlayStore

◆ sWorldSafeLocsStore