Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DBCStores.cpp File Reference
#include "DBCfmt.h"
#include "DBCStores.h"
#include "ItemPrototype.h"
#include "Log.h"
#include "ObjectDefines.h"
#include "SharedDefines.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "Timer.h"
#include "TransportMgr.h"
#include <map>
Include dependency graph for DBCStores.cpp:

Go to the source code of this file.

Classes

struct  WMOAreaTableTripple

Typedefs

typedef std::map< uint16, uint32AreaFlagByAreaID
typedef std::map< uint32, uint32AreaFlagByMapID
typedef std::map< uint32, SimpleFactionsListFactionTeamMap
typedef std::map< uint32, std::vector< uint32 > > SpecializationSpellsMap
typedef std::list< std::string > StoreProblemList
typedef std::map< WMOAreaTableTripple, WMOAreaTableEntry const * > WMOAreaInfoByTripple

Functions

AreaTableEntry const * GetAreaEntryByAreaFlagAndMap (uint32 area_flag, uint32 map_id)
AreaTableEntry const * GetAreaEntryByAreaID (uint32 area_id)
int32 GetAreaFlagByAreaID (uint32 area_id)
uint32 GetAreaFlagByMapId (uint32 mapid)
PvPDifficultyEntry const * GetBattlegroundBracketById (uint32 mapid, BattlegroundBracketId id)
PvPDifficultyEntry const * GetBattlegroundBracketByLevel (uint32 mapid, uint32 level)
CharStartOutfitEntry const * GetCharStartOutfitEntry (uint8 race, uint8 class_, uint8 gender)
uint32 GetClassBySkillId (uint32 skillId)
char const * GetClassName (uint8 class_, uint8)
uint32 const * GetClassSpecializations (uint8 classId)
ContentLevels GetContentLevelsForMapAndZone (uint32 mapid, uint32 zoneId)
MapDifficulty const * GetDefaultMapDifficulty (uint32 mapId)
DigsitePOIPolygon const * GetDigsitePOIPolygon (uint32 digsiteId)
MapDifficulty const * GetDownscaledMapDifficultyData (uint32 mapId, DifficultyID &difficulty)
SimpleFactionsList const * GetFactionTeamList (uint32 faction)
LFGDungeonEntry const * GetLFGDungeon (uint32 mapId, DifficultyID 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 GetLiquidFlags (uint32 liquidType)
MapDifficulty const * GetMapDifficultyData (uint32 mapId, DifficultyID difficulty)
uint32 GetMaxLevelForExpansion (uint32 expansion)
char const * GetPetName (uint32 petfamily, uint32)
std::set< uint32 > const & GetPhasesForGroup (uint32 group)
uint32 GetPowerIndexByClass (uint32 powerType, uint32 classId)
char const * GetRaceName (uint8 race, uint8)
const std::string * GetRandomCharacterName (uint8 race, uint8 gender)
uint32 GetSkillIdByClass (uint32 classId)
std::vector< uint32 > const * GetSpecializationSpells (uint32 specializationId)
std::list< uint32GetSpellsForLevels (uint32 classId, uint32 raceMask, uint32 specializationId, uint32 minLevel, uint32 maxLevel)
uint32 GetTalentSpellCost (uint32 spellId)
TalentSpellPos const * GetTalentSpellPos (uint32 spellId)
uint32 GetVirtualMapForMapAndZone (uint32 mapid, uint32 zoneId)
WMOAreaTableEntry const * GetWMOAreaTableEntryByTripple (int32 rootid, int32 adtid, int32 groupid)
bool IsTotemCategoryCompatiableWith (uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId)
template<class T>
void LoadDBC (uint32 &availableDbcLocales, StoreProblemList &errors, DBCStorage< T > &storage, std::string const &dbcPath, std::string const &filename, std::string const *customFormat=NULL, std::string const *customIndexName=NULL)
static bool LoadDBC_assert_print (uint32 fsize, uint32 rsize, const std::string &filename)
void LoadDBCStores (const std::string &dataPath)
void Map2ZoneCoordinates (float &x, float &y, uint32 zone)
void Zone2MapCoordinates (float &x, float &y, uint32 zone)

Variables

uint32 DBCFileCount = 0
uint32 PowersByClass [MAX_CLASSES][MAX_POWERS]
DBCStorage< AchievementEntrysAchievementStore (Achievementfmt)
TaxiMask sAllianceTaxiNodesMask
static AreaFlagByAreaID sAreaFlagByAreaID
static AreaFlagByMapID sAreaFlagByMapID
DBCStorage< AreaGroupEntrysAreaGroupStore (AreaGroupEntryfmt)
DBCStorage< AreaTableEntrysAreaStore (AreaTableEntryfmt)
DBCStorage< AreaTriggerEntrysAreaTriggerStore (AreaTriggerEntryfmt)
DBCStorage< ArmorLocationEntrysArmorLocationStore (ArmorLocationfmt)
DBCStorage< AuctionHouseEntrysAuctionHouseStore (AuctionHouseEntryfmt)
DBCStorage< BankBagSlotPricesEntrysBankBagSlotPricesStore (BankBagSlotPricesEntryfmt)
DBCStorage< BannedAddOnsEntrysBannedAddOnsStore (BannedAddOnsfmt)
DBCStorage< BarberShopStyleEntrysBarberShopStyleStore (BarberShopStyleEntryfmt)
DBCStorage< BattlemasterListEntrysBattlemasterListStore (BattlemasterListEntryfmt)
std::map< uint32, CharStartOutfitEntry const * > sCharStartOutfitMap
DBCStorage< CharStartOutfitEntrysCharStartOutfitStore (CharStartOutfitEntryfmt)
DBCStorage< CharTitlesEntrysCharTitlesStore (CharTitlesEntryfmt)
DBCStorage< ChatChannelsEntrysChatChannelsStore (ChatChannelsEntryfmt)
DBCStorage< ChrClassesEntrysChrClassesStore (ChrClassesEntryfmt)
DBCStorage< ChrPowerTypesEntrysChrPowerTypesStore (ChrClassesXPowerTypesfmt)
DBCStorage< ChrRacesEntrysChrRacesStore (ChrRacesEntryfmt)
DBCStorage< ChrSpecializationEntrysChrSpecializationStore (ChrSpecializationfmt)
DBCStorage< CinematicCameraEntrysCinematicCameraStore (CinematicCameraEntryfmt)
DBCStorage< CinematicSequencesEntrysCinematicSequencesStore (CinematicSequencesEntryfmt)
ClassBySkillIdStore sClassBySkillIdStore
DBCStorage< CreatureDisplayInfoEntrysCreatureDisplayInfoStore (CreatureDisplayInfofmt)
DBCStorage< CreatureFamilyEntrysCreatureFamilyStore (CreatureFamilyfmt)
DBCStorage< CreatureModelDataEntrysCreatureModelDataStore (CreatureModelDatafmt)
DBCStorage< CreatureSpellDataEntrysCreatureSpellDataStore (CreatureSpellDatafmt)
DBCStorage< CreatureTypeEntrysCreatureTypeStore (CreatureTypefmt)
DBCStorage< CriteriaEntrysCriteriaStore (Criteriafmt)
DBCStorage< CriteriaTreeEntrysCriteriaTreeStore (CriteriaTreefmt)
DBCStorage< CurrencyTypesEntrysCurrencyTypesStore (CurrencyTypesfmt)
TaxiMask sDeathKnightTaxiNodesMask
DBCStorage< DestructibleModelDataEntrysDestructibleModelDataStore (DestructibleModelDatafmt)
DBCStorage< DifficultyEntrysDifficultyStore (Difficultyfmt)
static DigsitePOIPolygonContainer sDigsitePOIPolygons
DBCStorage< DungeonEncounterEntrysDungeonEncounterStore (DungeonEncounterfmt)
DBCStorage< DurabilityCostsEntrysDurabilityCostsStore (DurabilityCostsfmt)
DBCStorage< DurabilityQualityEntrysDurabilityQualityStore (DurabilityQualityfmt)
DBCStorage< EmotesEntrysEmotesStore (EmotesEntryfmt)
DBCStorage< EmotesTextEntrysEmotesTextStore (EmotesTextEntryfmt)
DBCStorage< FactionEntrysFactionStore (FactionEntryfmt)
static FactionTeamMap sFactionTeamMap
DBCStorage< FactionTemplateEntrysFactionTemplateStore (FactionTemplateEntryfmt)
DBCStorage< GameObjectDisplayInfoEntrysGameObjectDisplayInfoStore (GameObjectDisplayInfofmt)
DBCStorage< GemPropertiesEntrysGemPropertiesStore (GemPropertiesEntryfmt)
NameGenVectorArraysMap sGenNameVectoArraysMap
DBCStorage< GlyphPropertiesEntrysGlyphPropertiesStore (GlyphPropertiesfmt)
DBCStorage< GlyphSlotEntrysGlyphSlotStore (GlyphSlotfmt)
DBCStorage< GtBarberShopCostBaseEntrysGtBarberShopCostBaseStore (GtBarberShopCostBasefmt)
DBCStorage< GtBattlePetXpEntrysGtBattlePetXpStore (GtBattlePetXpfmt)
DBCStorage< GtChanceToMeleeCritBaseEntrysGtChanceToMeleeCritBaseStore (GtChanceToMeleeCritBasefmt)
DBCStorage< GtChanceToMeleeCritEntrysGtChanceToMeleeCritStore (GtChanceToMeleeCritfmt)
DBCStorage< GtChanceToSpellCritBaseEntrysGtChanceToSpellCritBaseStore (GtChanceToSpellCritBasefmt)
DBCStorage< GtChanceToSpellCritEntrysGtChanceToSpellCritStore (GtChanceToSpellCritfmt)
DBCStorage< GtCombatRatingsEntrysGtCombatRatingsStore (GtCombatRatingsfmt)
DBCStorage< GtNPCManaCostScalerEntrysGtNPCManaCostScalerStore (GtNPCManaCostScalerfmt)
DBCStorage< GtOCTBaseHPByClassEntrysGtOCTBaseHPByClassStore (GtOCTBaseHPByClassfmt)
DBCStorage< GtOCTBaseMPByClassEntrysGtOCTBaseMPByClassStore (GtOCTBaseMPByClassfmt)
DBCStorage< GtOCTClassCombatRatingScalarEntrysGtOCTClassCombatRatingScalarStore (GtOCTClassCombatRatingScalarfmt)
DBCStorage< gtOCTHpPerStaminaEntrysGtOCTHpPerStaminaStore (GtOCTHpPerStaminafmt)
DBCStorage< GtRegenMPPerSptEntrysGtRegenMPPerSptStore (GtRegenMPPerSptfmt)
DBCStorage< GtSpellScalingEntrysGtSpellScalingStore (GtSpellScalingfmt)
DBCStorage< GuildPerkSpellsEntrysGuildPerkSpellsStore (GuildPerkSpellsfmt)
DBCStorage< HolidaysEntrysHolidaysStore (Holidaysfmt)
TaxiMask sHordeTaxiNodesMask
DBCStorage< ImportPriceArmorEntrysImportPriceArmorStore (ImportPriceArmorfmt)
DBCStorage< ImportPriceQualityEntrysImportPriceQualityStore (ImportPriceQualityfmt)
DBCStorage< ImportPriceShieldEntrysImportPriceShieldStore (ImportPriceShieldfmt)
DBCStorage< ImportPriceWeaponEntrysImportPriceWeaponStore (ImportPriceWeaponfmt)
DBCStorage< ItemArmorQualityEntrysItemArmorQualityStore (ItemArmorQualityfmt)
DBCStorage< ItemArmorShieldEntrysItemArmorShieldStore (ItemArmorShieldfmt)
DBCStorage< ItemArmorTotalEntrysItemArmorTotalStore (ItemArmorTotalfmt)
DBCStorage< ItemClassEntrysItemClassStore (ItemClassfmt)
DBCStorage< ItemDamageEntrysItemDamageAmmoStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageOneHandCasterStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageOneHandStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageRangedStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageThrownStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageTwoHandCasterStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageTwoHandStore (ItemDamagefmt)
DBCStorage< ItemDamageEntrysItemDamageWandStore (ItemDamagefmt)
DBCStorage< ItemDisenchantLootEntrysItemDisenchantLootStore (ItemDisenchantLootfmt)
DBCStorage< ItemLimitCategoryEntrysItemLimitCategoryStore (ItemLimitCategoryEntryfmt)
DBCStorage< ItemPriceBaseEntrysItemPriceBaseStore (ItemPriceBasefmt)
DBCStorage< ItemRandomPropertiesEntrysItemRandomPropertiesStore (ItemRandomPropertiesfmt)
DBCStorage< ItemRandomSuffixEntrysItemRandomSuffixStore (ItemRandomSuffixfmt)
DBCStorage< ItemReforgeEntrysItemReforgeStore (ItemReforgefmt)
DBCStorage< ItemSetEntrysItemSetStore (ItemSetEntryfmt)
DBCStorage< LFGDungeonEntrysLFGDungeonStore (LFGDungeonEntryfmt)
DBCStorage< LiquidTypeEntrysLiquidTypeStore (LiquidTypefmt)
DBCStorage< LockEntrysLockStore (LockEntryfmt)
DBCStorage< MailTemplateEntrysMailTemplateStore (MailTemplateEntryfmt)
MapDifficultyMap sMapDifficultyMap
DBCStorage< MapDifficultyEntrysMapDifficultyStore (MapDifficultyEntryfmt)
DBCStorage< MapEntrysMapStore (MapEntryfmt)
DBCStorage< ModifierTreeEntrysModifierTreeStore (ModifierTreefmt)
DBCStorage< MountCapabilityEntrysMountCapabilityStore (MountCapabilityfmt)
DBCStorage< MountTypeEntrysMountTypeStore (MountTypefmt)
DBCStorage< MovieEntrysMovieStore (MovieEntryfmt)
DBCStorage< NameGenEntrysNameGenStore (NameGenfmt)
TaxiMask sOldContinentsNodesMask
DBCStorage< OverrideSpellDataEntrysOverrideSpellDataStore (OverrideSpellDatafmt)
PetFamilySpellsStore sPetFamilySpellsStore
DBCStorage< PhaseGroupEntrysPhaseGroupStore (PhaseGroupfmt)
PhaseGroupContainer sPhasesByGroup
DBCStorage< PhaseEntrysPhaseStore (PhaseEntryfmt)
DBCStorage< PvPDifficultyEntrysPvPDifficultyStore (PvPDifficultyfmt)
DBCStorage< QuestFactionRewEntrysQuestFactionRewardStore (QuestFactionRewardfmt)
DBCStorage< QuestPOIPointEntrysQuestPOIPointStore (QuestPOIPointfmt)
DBCStorage< QuestSortEntrysQuestSortStore (QuestSortEntryfmt)
DBCStorage< QuestXPEntrysQuestXPStore (QuestXPfmt)
DBCStorage< RandomPropertiesPointsEntrysRandomPropertiesPointsStore (RandomPropertiesPointsfmt)
DBCStorage< ResearchBranchEntrysResearchBranchStore (ResearchBranchfmt)
DBCStorage< ResearchProjectEntrysResearchProjectStore (ResearchProjectfmt)
DBCStorage< ResearchSiteEntrysResearchSiteStore (ResearchSitefmt)
DBCStorage< ScalingStatDistributionEntrysScalingStatDistributionStore (ScalingStatDistributionfmt)
DBCStorage< ScalingStatValuesEntrysScalingStatValuesStore (ScalingStatValuesfmt)
DBCStorage< SkillLineAbilityEntrysSkillLineAbilityStore (SkillLineAbilityfmt)
DBCStorage< SkillLineEntrysSkillLineStore (SkillLinefmt)
DBCStorage< SoundEntriesEntrysSoundEntriesStore (SoundEntriesfmt)
static uint32 sSpecializationClassStore [MAX_CLASSES][4]
SpecializationSpellsMap sSpecializationSpellsMap
DBCStorage< SpecializationSpellsEntrysSpecializationSpellsStore (SpecializationSpellsfmt)
DBCStorage< SpellAuraOptionsEntrysSpellAuraOptionsStore (SpellAuraOptionsEntryfmt)
DBCStorage< SpellAuraRestrictionsEntrysSpellAuraRestrictionsStore (SpellAuraRestrictionsEntryfmt)
DBCStorage< SpellCastingRequirementsEntrysSpellCastingRequirementsStore (SpellCastingRequirementsEntryfmt)
DBCStorage< SpellCastTimesEntrysSpellCastTimesStore (SpellCastTimefmt)
DBCStorage< SpellCategoriesEntrysSpellCategoriesStore (SpellCategoriesEntryfmt)
DBCStorage< SpellCategoryEntrysSpellCategoryStore (SpellCategoryfmt)
DBCStorage< SpellClassOptionsEntrysSpellClassOptionsStore (SpellClassOptionsEntryfmt)
DBCStorage< SpellCooldownsEntrysSpellCooldownsStore (SpellCooldownsEntryfmt)
DBCStorage< SpellDifficultyEntrysSpellDifficultyStore (SpellDifficultyfmt)
DBCStorage< SpellDurationEntrysSpellDurationStore (SpellDurationfmt)
DBCStorage< SpellEffectScalingEntrysSpellEffectScalingStore (SpellEffectScalingfmt)
SpellEffectScallingByEffectId sSpellEffectScallingByEffectId
DBCStorage< SpellEffectEntrysSpellEffectStore (SpellEffectEntryfmt)
DBCStorage< SpellEquippedItemsEntrysSpellEquippedItemsStore (SpellEquippedItemsEntryfmt)
DBCStorage< SpellFocusObjectEntrysSpellFocusObjectStore (SpellFocusObjectfmt)
DBCStorage< SpellInterruptsEntrysSpellInterruptsStore (SpellInterruptsEntryfmt)
DBCStorage< SpellItemEnchantmentConditionEntrysSpellItemEnchantmentConditionStore (SpellItemEnchantmentConditionfmt)
DBCStorage< SpellItemEnchantmentEntrysSpellItemEnchantmentStore (SpellItemEnchantmentfmt)
DBCStorage< SpellLevelsEntrysSpellLevelsStore (SpellLevelsEntryfmt)
DBCStorage< SpellMiscEntrysSpellMiscStore (SpellMiscfmt)
DBCStorage< SpellPowerEntrysSpellPowerStore (SpellPowerEntryfmt)
DBCStorage< SpellRadiusEntrysSpellRadiusStore (SpellRadiusfmt)
DBCStorage< SpellRangeEntrysSpellRangeStore (SpellRangefmt)
DBCStorage< SpellRuneCostEntrysSpellRuneCostStore (SpellRuneCostfmt)
SpellCategoryStore sSpellsByCategoryStore
DBCStorage< SpellScalingEntrysSpellScalingStore (SpellScalingEntryfmt)
DBCStorage< SpellShapeshiftFormEntrysSpellShapeshiftFormStore (SpellShapeshiftFormfmt)
DBCStorage< SpellShapeshiftEntrysSpellShapeshiftStore (SpellShapeshiftEntryfmt)
SpellsPerClassStore sSpellsPerClassStore
DBCStorage< SpellEntrysSpellStore (SpellEntryfmt)
DBCStorage< SpellTargetRestrictionsEntrysSpellTargetRestrictionsStore (SpellTargetRestrictionsEntryfmt)
DBCStorage< SpellTotemsEntrysSpellTotemsStore (SpellTotemsEntryfmt)
DBCStorage< SummonPropertiesEntrysSummonPropertiesStore (SummonPropertiesfmt)
TalentSpellPosMap sTalentSpellPosMap
DBCStorage< TalentEntrysTalentStore (TalentEntryfmt)
TaxiMask sTaxiNodesMask
DBCStorage< TaxiNodesEntrysTaxiNodesStore (TaxiNodesEntryfmt)
TaxiPathNodesByPath sTaxiPathNodesByPath
static DBCStorage< TaxiPathNodeEntrysTaxiPathNodeStore (TaxiPathNodeEntryfmt)
TaxiPathSetBySource sTaxiPathSetBySource
DBCStorage< TaxiPathEntrysTaxiPathStore (TaxiPathEntryfmt)
DBCStorage< TotemCategoryEntrysTotemCategoryStore (TotemCategoryEntryfmt)
DBCStorage< TransportAnimationEntrysTransportAnimationStore (TransportAnimationfmt)
DBCStorage< TransportRotationEntrysTransportRotationStore (TransportRotationfmt)
DBCStorage< UnitPowerBarEntrysUnitPowerBarStore (UnitPowerBarfmt)
DBCStorage< VehicleSeatEntrysVehicleSeatStore (VehicleSeatEntryfmt)
DBCStorage< VehicleEntrysVehicleStore (VehicleEntryfmt)
static WMOAreaInfoByTripple sWMOAreaInfoByTripple
DBCStorage< WMOAreaTableEntrysWMOAreaTableStore (WMOAreaTableEntryfmt)
DBCStorage< WorldMapAreaEntrysWorldMapAreaStore (WorldMapAreaEntryfmt)
DBCStorage< WorldMapOverlayEntrysWorldMapOverlayStore (WorldMapOverlayEntryfmt)
DBCStorage< WorldSafeLocsEntrysWorldSafeLocsStore (WorldSafeLocsEntryfmt)

Typedef Documentation

◆ AreaFlagByAreaID

typedef std::map<uint16, uint32> AreaFlagByAreaID

Definition at line 19 of file DBCStores.cpp.

◆ AreaFlagByMapID

typedef std::map<uint32, uint32> AreaFlagByMapID

Definition at line 20 of file DBCStores.cpp.

◆ FactionTeamMap

Definition at line 87 of file DBCStores.cpp.

◆ SpecializationSpellsMap

typedef std::map<uint32, std::vector<uint32> > SpecializationSpellsMap

Definition at line 223 of file DBCStores.cpp.

◆ StoreProblemList

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

Definition at line 260 of file DBCStores.cpp.

◆ WMOAreaInfoByTripple

Definition at line 39 of file DBCStores.cpp.

Function Documentation

◆ GetAreaEntryByAreaFlagAndMap()

◆ GetAreaEntryByAreaID()

◆ GetAreaFlagByAreaID()

◆ GetAreaFlagByMapId()

uint32 GetAreaFlagByMapId ( uint32 mapid)

Definition at line 1025 of file DBCStores.cpp.

References sAreaFlagByMapID.

Referenced by Map::GetAreaFlag().

◆ GetBattlegroundBracketById()

PvPDifficultyEntry const * GetBattlegroundBracketById ( uint32 mapid,
BattlegroundBracketId id )

Definition at line 1319 of file DBCStores.cpp.

References sPvPDifficultyStore.

Referenced by BattlegroundQueue::BattlegroundQueueUpdate().

◆ GetBattlegroundBracketByLevel()

◆ GetCharStartOutfitEntry()

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

Definition at line 1342 of file DBCStores.cpp.

References sCharStartOutfitMap.

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

◆ GetClassBySkillId()

uint32 GetClassBySkillId ( uint32 skillId)

Definition at line 1139 of file DBCStores.cpp.

References sClassBySkillIdStore.

Referenced by TransportMgr::LoadDBCStores.

◆ GetClassName()

char const * GetClassName ( uint8 class_,
uint8 locale )

Definition at line 1019 of file DBCStores.cpp.

References ChrClassesEntry::name, and sChrClassesStore.

Referenced by misc_commandscript::HandlePInfoCommand().

◆ GetClassSpecializations()

uint32 const * GetClassSpecializations ( uint8 classId)

◆ GetContentLevelsForMapAndZone()

ContentLevels GetContentLevelsForMapAndZone ( uint32 mapid,
uint32 zoneId )

◆ GetDefaultMapDifficulty()

MapDifficulty const * GetDefaultMapDifficulty ( uint32 mapId)

◆ GetDigsitePOIPolygon()

DigsitePOIPolygon const * GetDigsitePOIPolygon ( uint32 digsiteId)

Definition at line 1508 of file DBCStores.cpp.

References sDigsitePOIPolygons.

Referenced by Player::IsWithinResearchDigsite().

◆ GetDownscaledMapDifficultyData()

◆ GetFactionTeamList()

SimpleFactionsList const * GetFactionTeamList ( uint32 faction)

Definition at line 940 of file DBCStores.cpp.

References sFactionTeamMap.

Referenced by ReputationMgr::SetReputation().

◆ GetLFGDungeon()

LFGDungeonEntry const * GetLFGDungeon ( uint32 mapId,
DifficultyID 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 1518 of file DBCStores.cpp.

References LFGDungeonEntry::m_ContinentID, LFGDungeonEntry::m_DifficultyID, and sLFGDungeonStore.

Referenced by Player::RewardReputation().

◆ GetLiquidFlags()

uint32 GetLiquidFlags ( uint32 liquidType)

Definition at line 1334 of file DBCStores.cpp.

References sLiquidTypeStore.

Referenced by VMAP::VMapManager2::GetLiquidLevel().

◆ GetMapDifficultyData()

◆ GetMaxLevelForExpansion()

uint32 GetMaxLevelForExpansion ( uint32 expansion)

Definition at line 1045 of file DBCStores.cpp.

References CONTENT_1_60, CONTENT_61_70, CONTENT_71_80, CONTENT_81_85, and CONTENT_86_90.

Referenced by KillRewarder::_RewardXP().

◆ GetPetName()

char const * GetPetName ( uint32 petfamily,
uint32 dbclang )

Definition at line 949 of file DBCStores.cpp.

References CreatureFamilyEntry::Name, and sCreatureFamilyStore.

Referenced by ObjectMgr::GeneratePetName().

◆ GetPhasesForGroup()

◆ GetPowerIndexByClass()

uint32 GetPowerIndexByClass ( uint32 powerType,
uint32 classId )

Definition at line 1351 of file DBCStores.cpp.

References PowersByClass.

Referenced by Unit::GetPowerIndex().

◆ GetRaceName()

char const * GetRaceName ( uint8 race,
uint8 locale )

Definition at line 1013 of file DBCStores.cpp.

References ChrRacesEntry::name, and sChrRacesStore.

Referenced by misc_commandscript::HandlePInfoCommand().

◆ GetRandomCharacterName()

const std::string * GetRandomCharacterName ( uint8 race,
uint8 gender )

Definition at line 932 of file DBCStores.cpp.

References sGenNameVectoArraysMap.

Referenced by WorldSession::HandleRandomizeCharNameOpcode().

◆ GetSkillIdByClass()

uint32 GetSkillIdByClass ( uint32 classId)

Definition at line 1147 of file DBCStores.cpp.

References sClassBySkillIdStore.

◆ GetSpecializationSpells()

std::vector< uint32 > const * GetSpecializationSpells ( uint32 specializationId)

◆ GetSpellsForLevels()

◆ GetTalentSpellCost()

◆ GetTalentSpellPos()

TalentSpellPos const * GetTalentSpellPos ( uint32 spellId)

◆ GetVirtualMapForMapAndZone()

uint32 GetVirtualMapForMapAndZone ( uint32 mapid,
uint32 zoneId )

◆ GetWMOAreaTableEntryByTripple()

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

Definition at line 985 of file DBCStores.cpp.

References sWMOAreaInfoByTripple.

Referenced by Map::GetAreaFlag(), and Map::IsOutdoors().

◆ 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,
std::string const * customFormat = NULL,
std::string const * customIndexName = NULL )
inline

◆ LoadDBC_assert_print()

bool LoadDBC_assert_print ( uint32 fsize,
uint32 rsize,
const std::string & filename )
static

Definition at line 264 of file DBCStores.cpp.

References SF_LOG_ERROR.

Referenced by LoadDBC().

◆ LoadDBCStores()

void LoadDBCStores ( const std::string & dataPath)

Definition at line 318 of file DBCStores.cpp.

Referenced by World::SetInitialWorldSettings().

◆ Map2ZoneCoordinates()

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

◆ Zone2MapCoordinates()

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

Variable Documentation

◆ DBCFileCount

uint32 DBCFileCount = 0

Definition at line 262 of file DBCStores.cpp.

Referenced by LoadDBC(), and TransportMgr::LoadDBCStores.

◆ PowersByClass

uint32 PowersByClass[MAX_CLASSES][MAX_POWERS]

Definition at line 76 of file DBCStores.cpp.

Referenced by GetPowerIndexByClass(), and TransportMgr::LoadDBCStores.

◆ sAchievementStore

◆ sAllianceTaxiNodesMask

TaxiMask sAllianceTaxiNodesMask

◆ sAreaFlagByAreaID

AreaFlagByAreaID sAreaFlagByAreaID
static

Definition at line 44 of file DBCStores.cpp.

Referenced by GetAreaFlagByAreaID(), and TransportMgr::LoadDBCStores.

◆ sAreaFlagByMapID

AreaFlagByMapID sAreaFlagByMapID
static

Definition at line 45 of file DBCStores.cpp.

Referenced by GetAreaFlagByMapId(), and TransportMgr::LoadDBCStores.

◆ sAreaGroupStore

◆ sAreaStore

◆ sAreaTriggerStore

◆ sArmorLocationStore

◆ sAuctionHouseStore

◆ sBankBagSlotPricesStore

◆ sBannedAddOnsStore

◆ sBarberShopStyleStore

◆ sBattlemasterListStore

◆ sCharStartOutfitMap

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

Definition at line 59 of file DBCStores.cpp.

Referenced by GetCharStartOutfitEntry(), and TransportMgr::LoadDBCStores.

◆ sCharStartOutfitStore

◆ sCharTitlesStore

◆ sChatChannelsStore

◆ sChrClassesStore

◆ sChrPowerTypesStore

◆ sChrRacesStore

◆ sChrSpecializationStore

◆ sCinematicCameraStore

◆ sCinematicSequencesStore

◆ sClassBySkillIdStore

ClassBySkillIdStore sClassBySkillIdStore

Definition at line 193 of file DBCStores.cpp.

Referenced by GetClassBySkillId(), GetSkillIdByClass(), and TransportMgr::LoadDBCStores.

◆ sCreatureDisplayInfoStore

◆ sCreatureFamilyStore

◆ sCreatureModelDataStore

◆ sCreatureSpellDataStore

◆ sCreatureTypeStore

◆ sCriteriaStore

◆ sCriteriaTreeStore

◆ sCurrencyTypesStore

◆ sDeathKnightTaxiNodesMask

TaxiMask sDeathKnightTaxiNodesMask

◆ sDestructibleModelDataStore

◆ sDifficultyStore

◆ sDigsitePOIPolygons

DigsitePOIPolygonContainer sDigsitePOIPolygons
static

Definition at line 173 of file DBCStores.cpp.

Referenced by GetDigsitePOIPolygon(), and TransportMgr::LoadDBCStores.

◆ sDungeonEncounterStore

◆ sDurabilityCostsStore

◆ sDurabilityQualityStore

◆ sEmotesStore

◆ sEmotesTextStore

◆ sFactionStore

◆ sFactionTeamMap

FactionTeamMap sFactionTeamMap
static

Definition at line 88 of file DBCStores.cpp.

Referenced by GetFactionTeamList(), and TransportMgr::LoadDBCStores.

◆ sFactionTemplateStore

◆ sGameObjectDisplayInfoStore

◆ sGemPropertiesStore

◆ sGenNameVectoArraysMap

NameGenVectorArraysMap sGenNameVectoArraysMap

Definition at line 158 of file DBCStores.cpp.

Referenced by GetRandomCharacterName(), and TransportMgr::LoadDBCStores.

◆ sGlyphPropertiesStore

◆ sGlyphSlotStore

◆ sGtBarberShopCostBaseStore

◆ sGtBattlePetXpStore

◆ sGtChanceToMeleeCritBaseStore

◆ sGtChanceToMeleeCritStore

◆ sGtChanceToSpellCritBaseStore

◆ sGtChanceToSpellCritStore

◆ sGtCombatRatingsStore

◆ sGtNPCManaCostScalerStore

◆ sGtOCTBaseHPByClassStore

◆ sGtOCTBaseMPByClassStore

◆ sGtOCTClassCombatRatingScalarStore

◆ sGtOCTHpPerStaminaStore

◆ sGtRegenMPPerSptStore

◆ sGtSpellScalingStore

◆ sGuildPerkSpellsStore

◆ sHolidaysStore

◆ sHordeTaxiNodesMask

TaxiMask sHordeTaxiNodesMask

◆ sImportPriceArmorStore

◆ sImportPriceQualityStore

◆ sImportPriceShieldStore

◆ sImportPriceWeaponStore

◆ sItemArmorQualityStore

◆ sItemArmorShieldStore

◆ sItemArmorTotalStore

◆ sItemClassStore

◆ sItemDamageAmmoStore

◆ sItemDamageOneHandCasterStore

◆ sItemDamageOneHandStore

◆ sItemDamageRangedStore

◆ sItemDamageThrownStore

◆ sItemDamageTwoHandCasterStore

◆ sItemDamageTwoHandStore

◆ sItemDamageWandStore

◆ sItemDisenchantLootStore

◆ sItemLimitCategoryStore

◆ sItemPriceBaseStore

◆ sItemRandomPropertiesStore

◆ sItemRandomSuffixStore

◆ sItemReforgeStore

◆ sItemSetStore

◆ sLFGDungeonStore

◆ sLiquidTypeStore

◆ sLockStore

◆ sMailTemplateStore

◆ sMapDifficultyMap

◆ sMapDifficultyStore

◆ sMapStore

Referenced by Group::_homebindIfInstance(), Player::_LoadBoundInstances(), Player::_LoadHomeBind(), InstanceSaveManager::_ResetOrWarnAll(), KillRewarder::_RewardGroup(), InstanceSaveManager::AddInstanceSave(), Creature::CanCreatureAttack(), MapManager::CanPlayerEnter(), Spell::CheckCast(), SpellInfo::CheckLocation(), MapManager::CreateBaseMap(), MapInstanced::CreateInstance(), TransportMgr::CreateTransport(), TransportMgr::GeneratePath(), GetAreaEntryByAreaFlagAndMap(), Group::GetBoundInstance(), ObjectMgr::GetClosestGraveYard(), GetContentLevelsForMapAndZone(), GetDownscaledMapDifficultyData(), ObjectMgr::GetGoBackTrigger(), Player::GetInstanceSave(), LuaGlobalFunctions::GetMapById(), InstanceSave::GetMapEntry(), InstanceSave::GetResetTimeForDB(), Player::GetZoneIdFromDB(), disable_commandscript::HandleAddDisables(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCorpseQueryOpcode(), misc_commandscript::HandleGPSCommand(), lookup_commandscript::HandleLookupMapCommand(), WorldSession::HandleMoveWorldportAckOpcode(), misc_commandscript::HandlePInfoCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), ConditionMgr::isConditionTypeValid(), DisableMgr::IsDisabledFor(), SmartAIMgr::IsEventValid(), ConditionMgr::isSourceTypeValid(), MapManager::IsValidMAP(), Player::KillPlayer(), ObjectMgr::LoadAreaTriggerTeleports(), Player::LoadCorpse(), ObjectMgr::LoadCreatures(), TransportMgr::LoadDBCStores, DisableMgr::LoadDisables(), Player::LoadFromDB(), ObjectMgr::LoadGameobjects(), GroupMgr::LoadGroups(), lfg::LFGMgr::LoadLFGDungeons(), ObjectMgr::LoadLinkedRespawn(), MMAP::MMapManager::LoadPhaseTiles(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadScripts(), SpellMgr::LoadSpellTargetPositions(), ObjectMgr::LoadTempSummons(), ObjectMgr::LoadTerrainSwapDefaults(), ObjectMgr::LoadTerrainWorldMaps(), Map::Map(), MapScript< TMap >::MapScript(), WorldObject::RebuildTerrainSwaps(), Group::ResetInstances(), Player::ResetInstances(), Player::Satisfy(), ObjectMgr::SetCreatureLinkedRespawn(), Player::TeleportTo(), and MMAP::MMapManager::UnloadPhaseTile().

◆ sModifierTreeStore

◆ sMountCapabilityStore

◆ sMountTypeStore

◆ sMovieStore

◆ sNameGenStore

◆ sOldContinentsNodesMask

TaxiMask sOldContinentsNodesMask

Definition at line 232 of file DBCStores.cpp.

Referenced by PlayerTaxi::InitTaxiNodesForClass(), and TransportMgr::LoadDBCStores.

◆ sOverrideSpellDataStore

◆ sPetFamilySpellsStore

PetFamilySpellsStore sPetFamilySpellsStore

Definition at line 191 of file DBCStores.cpp.

Referenced by Pet::LearnPetPassives(), and TransportMgr::LoadDBCStores.

◆ sPhaseGroupStore

◆ sPhasesByGroup

PhaseGroupContainer sPhasesByGroup

Definition at line 258 of file DBCStores.cpp.

Referenced by GetPhasesForGroup(), and TransportMgr::LoadDBCStores.

◆ sPhaseStore

◆ sPvPDifficultyStore

◆ sQuestFactionRewardStore

◆ sQuestPOIPointStore

◆ sQuestSortStore

◆ sQuestXPStore

◆ sRandomPropertiesPointsStore

◆ sResearchBranchStore

◆ sResearchProjectStore

◆ sResearchSiteStore

◆ sScalingStatDistributionStore

◆ sScalingStatValuesStore

◆ sSkillLineAbilityStore

◆ sSkillLineStore

◆ sSoundEntriesStore

◆ sSpecializationClassStore

uint32 sSpecializationClassStore[MAX_CLASSES][4]
static

Definition at line 228 of file DBCStores.cpp.

Referenced by GetClassSpecializations(), and TransportMgr::LoadDBCStores.

◆ sSpecializationSpellsMap

SpecializationSpellsMap sSpecializationSpellsMap

◆ sSpecializationSpellsStore

◆ sSpellAuraOptionsStore

◆ sSpellAuraRestrictionsStore

◆ sSpellCastingRequirementsStore

◆ sSpellCastTimesStore

◆ sSpellCategoriesStore

◆ sSpellCategoryStore

◆ sSpellClassOptionsStore

◆ sSpellCooldownsStore

◆ sSpellDifficultyStore

◆ sSpellDurationStore

◆ sSpellEffectScalingStore

◆ sSpellEffectScallingByEffectId

SpellEffectScallingByEffectId sSpellEffectScallingByEffectId

Definition at line 194 of file DBCStores.cpp.

Referenced by TransportMgr::LoadDBCStores, and SpellEffectInfo::SpellEffectInfo().

◆ sSpellEffectStore

◆ sSpellEquippedItemsStore

◆ sSpellFocusObjectStore

◆ sSpellInterruptsStore

◆ sSpellItemEnchantmentConditionStore

◆ sSpellItemEnchantmentStore

◆ sSpellLevelsStore

◆ sSpellMiscStore

◆ sSpellPowerStore

◆ sSpellRadiusStore

◆ sSpellRangeStore

◆ sSpellRuneCostStore

◆ sSpellsByCategoryStore

◆ sSpellScalingStore

◆ sSpellShapeshiftFormStore

◆ sSpellShapeshiftStore

◆ sSpellsPerClassStore

SpellsPerClassStore sSpellsPerClassStore

Definition at line 192 of file DBCStores.cpp.

Referenced by GetSpellsForLevels(), and TransportMgr::LoadDBCStores.

◆ sSpellStore

◆ sSpellTargetRestrictionsStore

◆ sSpellTotemsStore

◆ sSummonPropertiesStore

◆ sTalentSpellPosMap

TalentSpellPosMap sTalentSpellPosMap

Definition at line 222 of file DBCStores.cpp.

Referenced by GetTalentSpellPos(), and TransportMgr::LoadDBCStores.

◆ sTalentStore

◆ sTaxiNodesMask

◆ sTaxiNodesStore

◆ sTaxiPathNodesByPath

◆ sTaxiPathNodeStore

◆ sTaxiPathSetBySource

TaxiPathSetBySource sTaxiPathSetBySource

Definition at line 238 of file DBCStores.cpp.

Referenced by ObjectMgr::GetTaxiPath(), and TransportMgr::LoadDBCStores.

◆ sTaxiPathStore

◆ sTotemCategoryStore

◆ sTransportAnimationStore

◆ sTransportRotationStore

◆ sUnitPowerBarStore

◆ sVehicleSeatStore

◆ sVehicleStore

◆ sWMOAreaInfoByTripple

WMOAreaInfoByTripple sWMOAreaInfoByTripple
static

Definition at line 47 of file DBCStores.cpp.

Referenced by GetWMOAreaTableEntryByTripple(), and TransportMgr::LoadDBCStores.

◆ sWMOAreaTableStore

◆ sWorldMapAreaStore

◆ sWorldMapOverlayStore

◆ sWorldSafeLocsStore