![]() |
TrinityCore
|
#include "DBCStore.h"#include "DBCStructure.h"#include "SharedDefines.h"#include <list>#include <map>#include <unordered_map>#include <unordered_set>
Include dependency graph for DBCStores.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef std::list< uint32 > | SimpleFactionsList |
| typedef std::unordered_multimap< uint32, SkillRaceClassInfoEntry const * > | SkillRaceClassInfoMap |
| typedef std::pair< SkillRaceClassInfoMap::iterator, SkillRaceClassInfoMap::iterator > | SkillRaceClassInfoBounds |
Enumerations | |
| enum | ContentLevels : uint8 { CONTENT_1_60 = 0 , CONTENT_61_70 , CONTENT_71_80 } |
| typedef std::list<uint32> SimpleFactionsList |
Definition at line 36 of file DBCStores.h.
| typedef std::pair<SkillRaceClassInfoMap::iterator, SkillRaceClassInfoMap::iterator> SkillRaceClassInfoBounds |
Definition at line 82 of file DBCStores.h.
| typedef std::unordered_multimap<uint32, SkillRaceClassInfoEntry const*> SkillRaceClassInfoMap |
Definition at line 81 of file DBCStores.h.
| enum ContentLevels : uint8 |
| Enumerator | |
|---|---|
| CONTENT_1_60 | |
| CONTENT_61_70 | |
| CONTENT_71_80 | |
Definition at line 50 of file DBCStores.h.
| TC_GAME_API 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().
| TC_GAME_API PvPDifficultyEntry const * GetBattlegroundBracketById | ( | uint32 | mapid, |
| BattlegroundBracketId | id | ||
| ) |
Definition at line 855 of file DBCStores.cpp.
References sPvPDifficultyStore.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), and BattlegroundMgr::IsValidQueueId().
| TC_GAME_API PvPDifficultyEntry const * GetBattlegroundBracketByLevel | ( | uint32 | mapid, |
| uint32 | level | ||
| ) |
Definition at line 831 of file DBCStores.cpp.
References PvPDifficultyEntry::MaxLevel, and sPvPDifficultyStore.
Referenced by BattlegroundMgr::BuildBattlegroundStatusActive(), Group::CanJoinBattlegroundQueue(), MapInstanced::CreateBattleground(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), and BattlegroundMgr::SendBattlegroundList().
| TC_GAME_API CharacterFacialHairStylesEntry const * GetCharFacialHairEntry | ( | uint8 | race, |
| uint8 | gender, | ||
| uint8 | facialHairID | ||
| ) |
Definition at line 878 of file DBCStores.cpp.
References sCharFacialHairMap.
Referenced by Player::ValidateAppearance().
| TC_GAME_API 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().
| TC_GAME_API 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().
| TC_GAME_API 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().
| TC_GAME_API ContentLevels GetContentLevelsForMapAndZone | ( | uint32 | mapid, |
| uint32 | zoneId | ||
| ) |
Definition at line 738 of file DBCStores.cpp.
References CONTENT_1_60, CONTENT_61_70, CONTENT_71_80, MapEntry::Expansion(), GetVirtualMapForMapAndZone(), and sMapStore.
Referenced by Trinity::XP::Gain().
| TC_GAME_API uint32 GetDefaultMapLight | ( | uint32 | mapId | ) |
Definition at line 924 of file DBCStores.cpp.
References LightEntry::ContinentID, LightEntry::GameCoords, LightEntry::ID, sLightStore, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
| TC_GAME_API MapDifficultyEntry const * GetDownscaledMapDifficultyData | ( | uint32 | mapId, |
| Difficulty & | difficulty | ||
| ) |
Definition at line 807 of file DBCStores.cpp.
References GetMapDifficultyData(), and RAID_DIFFICULTY_25MAN_NORMAL.
Referenced by MapInstanced::CreateInstance(), InstanceSaveManager::ForceGlobalReset(), Group::GetBoundInstance(), Player::GetBoundInstance(), DisableMgr::IsDisabledFor(), MapManager::PlayerCannotEnter(), and Player::Satisfy().
| TC_GAME_API SimpleFactionsList const * GetFactionTeamList | ( | uint32 | faction | ) |
Definition at line 670 of file DBCStores.cpp.
References sFactionTeamMap.
Referenced by ReputationMgr::SetReputation().
| TC_GAME_API 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().
| TC_GAME_API uint32 GetLiquidFlags | ( | uint32 | liquidType | ) |
Definition at line 870 of file DBCStores.cpp.
| TC_GAME_API MapDifficultyEntry const * GetMapDifficultyData | ( | uint32 | mapId, |
| Difficulty | difficulty | ||
| ) |
Definition at line 802 of file DBCStores.cpp.
References Trinity::Containers::MapGetValuePtr(), and sMapDifficultyMap.
Referenced by Player::_LoadBoundInstances(), GetDownscaledMapDifficultyData(), Map::GetMapDifficulty(), InstanceSaveManager::GetSubsequentResetTime(), debug_commandscript::HandleDebugRaidResetCommand(), WorldSession::HandleMoveWorldportAck(), ObjectMgr::LoadCreatures(), DisableMgr::LoadDisables(), ObjectMgr::LoadGameObjects(), and InstanceSaveManager::LoadResetTimes().
| TC_GAME_API char const * GetPetName | ( | uint32 | petfamily, |
| uint32 | dbclang | ||
| ) |
Definition at line 679 of file DBCStores.cpp.
References CreatureFamilyEntry::Name, and sCreatureFamilyStore.
Referenced by ObjectMgr::GeneratePetName().
| TC_GAME_API 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().
| TC_GAME_API std::vector< SkillLineAbilityEntry const * > const * GetSkillLineAbilitiesBySkill | ( | uint32 | skill | ) |
Definition at line 939 of file DBCStores.cpp.
References Trinity::Containers::MapGetValuePtr(), and SkillLineAbilitiesBySkill.
Referenced by learn_commandscript::HandleLearnSkillRecipesHelper(), Player::LearnSkillRewardedSpells(), SpellMgr::LoadPetLevelupSpellMap(), and Player::SetSkill().
| TC_GAME_API SkillRaceClassInfoEntry const * GetSkillRaceClassInfo | ( | uint32 | skill, |
| uint8 | race, | ||
| uint8 | class_ | ||
| ) |
Definition at line 944 of file DBCStores.cpp.
References SkillRaceClassInfoBySkill.
Referenced by Player::_LoadSkills(), Spell::EffectLearnSkill(), WorldSession::HandleUnlearnSkillOpcode(), Player::IsSpellFitByClassAndRace(), Player::LearnDefaultSkill(), ObjectMgr::LoadPlayerInfo(), and Player::UpdateSkillsForLevel().
| TC_GAME_API uint32 GetTalentSpellCost | ( | uint32 | spellId | ) |
Definition at line 698 of file DBCStores.cpp.
References GetTalentSpellPos(), and TalentSpellPos::rank.
Referenced by Pet::addSpell(), Player::AddSpell(), SpellInfo::CheckShapeshift(), learn_commandscript::HandleLearnCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), learn_commandscript::HandleUnLearnCommand(), ObjectMgr::LoadQuests(), SpellMgr::LoadSpellInfoCorrections(), ObjectMgr::LoadTrainers(), Player::RemoveSpell(), Pet::removeSpell(), and Player::ResetSpells().
| TC_GAME_API TalentSpellPos const * GetTalentSpellPos | ( | uint32 | spellId | ) |
Definition at line 689 of file DBCStores.cpp.
References sTalentSpellPosMap.
Referenced by Pet::addSpell(), Player::AddSpell(), Player::AddTalent(), GetTalentSpellCost(), and SpellMgr::LoadSpellInfoCustomAttributes().
| TC_GAME_API uint32 const * GetTalentTabPages | ( | uint8 | cls | ) |
Definition at line 865 of file DBCStores.cpp.
References sTalentTabPages.
Referenced by Player::BuildPlayerTalentsInfoData().
| TC_GAME_API uint32 GetVirtualMapForMapAndZone | ( | uint32 | mapid, |
| uint32 | zoneId | ||
| ) |
Definition at line 727 of file DBCStores.cpp.
References sWorldMapAreaStore.
Referenced by Player::CanFlyInZone(), SpellInfo::CheckLocation(), and GetContentLevelsForMapAndZone().
| TC_GAME_API 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().
| TC_GAME_API bool IsTotemCategoryCompatiableWith | ( | uint32 | itemTotemCategoryId, |
| uint32 | requiredTotemCategoryId | ||
| ) |
Definition at line 756 of file DBCStores.cpp.
References sTotemCategoryStore, TotemCategoryEntry::TotemCategoryMask, and TotemCategoryEntry::TotemCategoryType.
Referenced by Player::HasItemTotemCategory().
| TC_GAME_API 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().
| TC_GAME_API void Map2ZoneCoordinates | ( | float & | x, |
| float & | y, | ||
| uint32 | zone | ||
| ) |
Definition at line 789 of file DBCStores.cpp.
References WorldMapAreaEntry::LocBottom, WorldMapAreaEntry::LocLeft, WorldMapAreaEntry::LocRight, WorldMapAreaEntry::LocTop, and sWorldMapAreaStore.
Referenced by misc_commandscript::HandleGPSCommand().
| TC_GAME_API ResponseCodes ValidateName | ( | std::wstring const & | name, |
| LocaleConstant | locale | ||
| ) |
Definition at line 960 of file DBCStores.cpp.
References CHAR_NAME_PROFANE, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, NamesProfaneValidators, NamesReservedValidators, RESPONSE_FAILURE, and TOTAL_LOCALES.
Referenced by ObjectMgr::CheckPetName(), and ObjectMgr::CheckPlayerName().
| TC_GAME_API void Zone2MapCoordinates | ( | float & | x, |
| float & | y, | ||
| uint32 | zone | ||
| ) |
Definition at line 776 of file DBCStores.cpp.
References WorldMapAreaEntry::LocBottom, WorldMapAreaEntry::LocLeft, WorldMapAreaEntry::LocRight, WorldMapAreaEntry::LocTop, and sWorldMapAreaStore.
Referenced by go_commandscript::HandleGoZoneXYCommand().
|
extern |
|
extern |
|
extern |
Definition at line 196 of file DBCStores.cpp.
Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 197 of file DBCStores.cpp.
Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 195 of file DBCStores.cpp.
Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 194 of file DBCStores.cpp.
Referenced by PlayerTaxi::InitTaxiNodesForLevel().
|
extern |
|
extern |
Definition at line 170 of file DBCStores.cpp.
Referenced by Pet::LearnPetPassives().
|
extern |
Definition at line 186 of file DBCStores.cpp.
Referenced by Pet::resetTalentsForAllPetsOf().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 193 of file DBCStores.cpp.
Referenced by PlayerTaxi::AppendTaximaskTo(), ObjectMgr::GetNearestTaxiNode(), and PlayerTaxi::LoadTaxiMask().
|
extern |
|
extern |
Definition at line 204 of file DBCStores.cpp.
Referenced by Player::ContinueTaxiFlight(), TransportMgr::GeneratePath(), ObjectMgr::LoadEventScripts(), ObjectMgr::LoadGameObjectTemplate(), FlightPathMovementGenerator::LoadPath(), TransportMgr::LoadTransportTemplates(), and MotionMaster::MoveTaxiFlight().
|
extern |
Definition at line 200 of file DBCStores.cpp.
Referenced by ObjectMgr::GetTaxiPath().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |