AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ObjectMgr.h"
Classes | |
struct | GameobjectInstanceSavedState |
Public Types | |
typedef std::unordered_map< uint32, Item * > | ItemMap |
typedef std::unordered_map< uint32, Quest * > | QuestMap |
typedef std::unordered_map< uint32, AreaTrigger > | AreaTriggerContainer |
typedef std::unordered_map< uint32, AreaTriggerTeleport > | AreaTriggerTeleportContainer |
typedef std::unordered_map< uint32, uint32 > | AreaTriggerScriptContainer |
typedef std::unordered_map< uint32, std::unordered_map< uint8, DungeonProgressionRequirements * > > | DungeonProgressionRequirementsContainer |
typedef std::unordered_map< uint32, RepRewardRate > | RepRewardRateContainer |
typedef std::unordered_map< uint32, ReputationOnKillEntry > | RepOnKillContainer |
typedef std::unordered_map< uint32, RepSpilloverTemplate > | RepSpilloverTemplateContainer |
typedef std::unordered_map< uint32, PointOfInterest > | PointOfInterestContainer |
typedef std::vector< std::string > | ScriptNameContainer |
typedef std::map< uint32, uint32 > | CharacterConversionMap |
typedef std::multimap< int32, uint32 > | ExclusiveQuestGroups |
typedef std::pair< ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator > | ExclusiveQuestGroupsBounds |
Static Public Member Functions | |
static ObjectMgr * | instance () |
static CreatureModel const * | ChooseDisplayId (CreatureTemplate const *cinfo, CreatureData const *data=nullptr) |
static void | ChooseCreatureFlags (CreatureTemplate const *cinfo, uint32 &npcflag, uint32 &unit_flags, uint32 &dynamicflags, CreatureData const *data=nullptr) |
static uint8 | CheckPlayerName (std::string_view name, bool create=false) |
static PetNameInvalidReason | CheckPetName (std::string_view name) |
static bool | IsValidCharterName (std::string_view name) |
static bool | IsValidChannelName (std::string const &name) |
static bool | CheckDeclinedNames (std::wstring w_ownname, DeclinedName const &names) |
static void | AddLocaleString (std::string &&s, LocaleConstant locale, std::vector< std::string > &data) |
static std::string_view | GetLocaleString (std::vector< std::string > const &data, std::size_t locale) |
static void | GetLocaleString (const std::vector< std::string > &data, int loc_idx, std::string &value) |
Private Types | |
enum | CreatureLinkedRespawnType { CREATURE_TO_CREATURE , CREATURE_TO_GO , GO_TO_GO , GO_TO_CREATURE } |
typedef std::unordered_map< uint32, GossipText > | GossipTextContainer |
typedef std::unordered_map< uint32, uint32 > | QuestAreaTriggerContainer |
typedef std::unordered_map< uint32, uint32 > | TavernAreaTriggerContainer |
typedef std::set< std::wstring > | ReservedNamesContainer |
typedef std::set< std::wstring > | ProfanityNamesContainer |
typedef std::map< uint32, PetLevelInfo * > | PetLevelInfoContainer |
typedef std::vector< uint32 > | PlayerXPperLevel |
typedef std::map< uint32, uint32 > | BaseXPContainer |
typedef std::map< uint32, int32 > | FishingBaseSkillContainer |
typedef std::map< uint32, std::vector< std::string > > | HalfNameContainer |
typedef std::map< std::pair< uint32, LocaleConstant >, std::vector< std::string > > | HalfNameContainerLocale |
typedef std::unordered_map< uint32, ItemSetNameEntry > | ItemSetNameContainer |
Private Member Functions | |
ObjectMgr () | |
~ObjectMgr () | |
template<HighGuid high> | |
ObjectGuidGeneratorBase & | GetGuidSequenceGenerator () |
void | LoadScripts (ScriptsType type) |
void | LoadQuestRelationsHelper (QuestRelations &map, std::string const &table, bool starter, bool go) |
void | PlayerCreateInfoAddItemHelper (uint32 race_, uint32 class_, uint32 itemId, int32 count) |
void | BuildPlayerLevelInfo (uint8 race, uint8 class_, uint8 level, PlayerLevelInfo *plinfo) const |
Friends | |
class | PlayerDumpReader |
typedef std::unordered_map<uint32, AreaTrigger> ObjectMgr::AreaTriggerContainer |
typedef std::unordered_map<uint32, uint32> ObjectMgr::AreaTriggerScriptContainer |
typedef std::unordered_map<uint32, AreaTriggerTeleport> ObjectMgr::AreaTriggerTeleportContainer |
|
private |
typedef std::map<uint32, uint32> ObjectMgr::CharacterConversionMap |
typedef std::unordered_map<uint32, std::unordered_map<uint8, DungeonProgressionRequirements*> > ObjectMgr::DungeonProgressionRequirementsContainer |
typedef std::multimap<int32, uint32> ObjectMgr::ExclusiveQuestGroups |
typedef std::pair<ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator> ObjectMgr::ExclusiveQuestGroupsBounds |
|
private |
|
private |
|
private |
|
private |
typedef std::unordered_map<uint32, Item*> ObjectMgr::ItemMap |
|
private |
|
private |
|
private |
typedef std::unordered_map<uint32, PointOfInterest> ObjectMgr::PointOfInterestContainer |
|
private |
|
private |
typedef std::unordered_map<uint32, Quest*> ObjectMgr::QuestMap |
typedef std::unordered_map<uint32, ReputationOnKillEntry> ObjectMgr::RepOnKillContainer |
typedef std::unordered_map<uint32, RepRewardRate > ObjectMgr::RepRewardRateContainer |
typedef std::unordered_map<uint32, RepSpilloverTemplate> ObjectMgr::RepSpilloverTemplateContainer |
|
private |
typedef std::vector<std::string> ObjectMgr::ScriptNameContainer |
|
private |
|
private |
Enumerator | |
---|---|
CREATURE_TO_CREATURE | |
CREATURE_TO_GO | |
GO_TO_GO | |
GO_TO_CREATURE |
|
private |
References _playerClassInfo, _playerInfo, MAX_CLASSES, and MAX_RACES.
|
private |
References _accessRequirementStore, _cacheTrainerSpellStore, _cacheVendorItemStore, _dungeonEncounterStore, _petInfoStore, _playerClassInfo, _playerInfo, _questTemplates, PlayerClassInfo::levelInfo, PlayerInfo::levelInfo, MAX_CLASSES, and MAX_RACES.
void ObjectMgr::AddCreatureToGrid | ( | ObjectGuid::LowType | guid, |
CreatureData const * | data | ||
) |
References _mapObjectGuidsStore, Acore::ComputeCellCoord(), CellObjectGuids::creatures, CoordPair< LIMIT >::GetId(), MAKE_PAIR32(), CreatureData::mapid, CreatureData::posX, CreatureData::posY, and CreatureData::spawnMask.
Referenced by AddCreData(), and LoadCreatures().
uint32 ObjectMgr::AddCreData | ( | uint32 | entry, |
uint32 | map, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | o, | ||
uint32 | spawntimedelay = 0 |
||
) |
References AddCreatureToGrid(), CreatureData::curhealth, CreatureData::curmana, CreatureData::currentwaypoint, CreatureData::dbData, CreatureData::displayid, CreatureTemplate::dynamicflags, CreatureData::dynamicflags, CreatureData::equipmentId, GenerateCreatureSpawnId(), CreatureBaseStats::GenerateHealth(), CreatureBaseStats::GenerateMana(), GetCreatureBaseStats(), GetCreatureTemplate(), CreatureData::id1, CreatureData::id2, CreatureData::id3, Map::Instanceable(), Map::IsRemovalGrid(), Creature::LoadCreatureFromDB(), LOG_ERROR, CreatureData::mapid, CreatureTemplate::maxlevel, CreatureTemplate::minlevel, CreatureTemplate::MovementType, CreatureData::movementType, NewOrExistCreatureData(), CreatureTemplate::npcflag, CreatureData::npcflag, CreatureData::orientation, CreatureData::phaseMask, PHASEMASK_NORMAL, CreatureData::posX, CreatureData::posY, CreatureData::posZ, sMapMgr, CreatureData::spawnMask, CreatureData::spawntimesecs, CreatureTemplate::unit_class, CreatureTemplate::unit_flags, CreatureData::unit_flags, urand(), and CreatureData::wander_distance.
void ObjectMgr::AddGameobjectInfo | ( | GameObjectTemplate * | goinfo | ) |
void ObjectMgr::AddGameobjectToGrid | ( | ObjectGuid::LowType | guid, |
GameObjectData const * | data | ||
) |
References _mapObjectGuidsStore, Acore::ComputeCellCoord(), CellObjectGuids::gameobjects, CoordPair< LIMIT >::GetId(), MAKE_PAIR32(), GameObjectData::mapid, GameObjectData::posX, GameObjectData::posY, and GameObjectData::spawnMask.
Referenced by AddGOData(), and LoadGameobjects().
bool ObjectMgr::AddGameTele | ( | GameTele & | data | ) |
References _gameTeleStore, GameTele::mapId, GameTele::name, GameTele::orientation, GameTele::position_x, GameTele::position_y, GameTele::position_z, PreparedStatementBase::SetData(), Utf8toWStr(), GameTele::wnameLow, WORLD_INS_GAME_TELE, WorldDatabase, and wstrToLower().
uint32 ObjectMgr::AddGOData | ( | uint32 | entry, |
uint32 | map, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | o, | ||
uint32 | spawntimedelay = 0 , |
||
float | rotation0 = 0 , |
||
float | rotation1 = 0 , |
||
float | rotation2 = 0 , |
||
float | rotation3 = 0 |
||
) |
References AddGameobjectToGrid(), GameObjectData::animprogress, GameObjectData::artKit, GameObjectData::dbData, GAMEOBJECT_TYPE_CAPTURE_POINT, GenerateGameObjectSpawnId(), GetGameObjectTemplate(), GameObjectData::go_state, GO_STATE_READY, GameObjectData::id, Map::Instanceable(), Map::IsGridLoaded(), GameObject::LoadGameObjectFromDB(), LOG_DEBUG, LOG_ERROR, GameObjectData::mapid, NewGOData(), GameObjectData::orientation, GameObjectData::phaseMask, PHASEMASK_NORMAL, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, GameObjectData::rotation, sMapMgr, sObjectMgr, GameObjectData::spawnMask, GameObjectData::spawntimesecs, and GameObjectTemplate::type.
|
static |
Referenced by LoadAcoreStrings(), LoadBroadcastTextLocales(), LoadCreatureLocales(), CreatureTextMgr::LoadCreatureTextLocales(), LoadGameObjectLocales(), LoadGossipMenuItemsLocales(), LoadItemLocales(), LoadItemSetNameLocales(), LoadModuleStrings(), LoadModuleStringsLocale(), LoadNpcTextLocales(), LoadPageTextLocales(), LoadPointOfInterestLocales(), LoadQuestGreetings(), LoadQuestGreetingsLocales(), LoadQuestLocales(), LoadQuestOfferRewardLocale(), LoadQuestRequestItemsLocale(), and AchievementGlobalMgr::LoadRewardLocales().
void ObjectMgr::AddProfanityPlayerName | ( | std::string const & | name | ) |
References _profanityNamesStore, CHAR_INS_PROFANITY_PLAYER_NAME, CharacterDatabase, IsProfanityName(), LOG_ERROR, PreparedStatementBase::SetData(), Utf8toWStr(), and wstrToLower().
void ObjectMgr::AddReservedPlayerName | ( | std::string const & | name | ) |
References _reservedNamesStore, CHAR_INS_RESERVED_PLAYER_NAME, CharacterDatabase, IsReservedName(), LOG_ERROR, PreparedStatementBase::SetData(), Utf8toWStr(), and wstrToLower().
void ObjectMgr::AddSpellToTrainer | ( | uint32 | entry, |
uint32 | spell, | ||
uint32 | spellCost, | ||
uint32 | reqSkill, | ||
uint32 | reqSkillValue, | ||
uint32 | reqLevel, | ||
uint32 | reqSpell | ||
) |
References _cacheTrainerSpellStore, ACORE_TRAINER_START_REF, SpellMgr::ComputeIsSpellValid(), SpellInfo::Effects, GetCreatureTemplate(), GetTalentSpellCost(), SpellInfo::IsProfession(), TrainerSpell::learnedSpell, LOG_ERROR, MAX_SPELL_EFFECTS, CreatureTemplate::npcflag, TrainerSpell::reqLevel, TrainerSpell::reqSkill, TrainerSpell::reqSkillValue, TrainerSpell::reqSpell, TrainerSpell::spell, SPELL_EFFECT_LEARN_SPELL, TrainerSpell::spellCost, SpellInfo::SpellLevel, TrainerSpellData::spellList, sSpellMgr, TARGET_UNIT_CASTER, TARGET_UNIT_TARGET_ALLY, TARGET_UNIT_TARGET_ANY, TrainerSpellData::trainerType, and UNIT_NPC_FLAG_TRAINER.
Referenced by LoadTrainerSpell().
void ObjectMgr::AddVendorItem | ( | uint32 | entry, |
uint32 | item, | ||
int32 | maxcount, | ||
uint32 | incrtime, | ||
uint32 | extendedCost, | ||
bool | persist = true |
||
) |
References _cacheVendorItemStore, VendorItemData::AddItem(), PreparedStatementBase::SetData(), WORLD_INS_NPC_VENDOR, and WorldDatabase.
|
private |
References _playerInfo, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CONFIG_MAX_PLAYER_LEVEL, PlayerInfo::levelInfo, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, PlayerLevelInfo::stats, and sWorld.
Referenced by GetPlayerLevelInfo().
References _fishingBaseForAreaStore, LOG_ERROR, LOG_INFO, and sAreaTableStore.
void ObjectMgr::CheckCreatureMovement | ( | char const * | table, |
uint64 | id, | ||
CreatureMovementData & | creatureMovement | ||
) |
References CreatureMovementData::Chase, CreatureMovementData::Flight, CreatureMovementData::Ground, LOG_ERROR, and CreatureMovementData::Random.
Referenced by CheckCreatureTemplate(), and LoadCreatureMovementOverrides().
void ObjectMgr::CheckCreatureTemplate | ( | CreatureTemplate const * | cInfo | ) |
References _creatureCustomIDsStore, _difficultyEntries, Creature::_GetDamageMod(), _hasDifficultyEntries, CreatureTemplate::AIName, BASE_ATTACK_TIME, CreatureTemplate::BaseAttackTime, CheckCreatureMovement(), CLASSMASK_ALL_CREATURES, CREATURE_FAMILY_HORSE_CUSTOM, CREATURE_FLAG_EXTRA_DB_ALLOWED, CREATURE_FLAG_EXTRA_MODULE, CREATURE_TYPE_HUMANOID, CreatureTemplate::DifficultyEntry, CreatureTemplate::dmgschool, CreatureTemplate::Entry, CreatureTemplate::expansion, CreatureTemplate::faction, CreatureTemplate::family, CreatureTemplate::flags_extra, GetCreatureTemplate(), CreatureTemplate::GossipMenuId, CreatureTemplate::HoverHeight, IDLE_MOTION_TYPE, CreatureTemplate::KillCredit, LOG_ERROR, LOG_INFO, MAX_CREATURE_SPELLS, MAX_DB_MOTION_TYPE, MAX_DIFFICULTY, MAX_EXPANSIONS, MAX_KILL_CREDIT, MAX_SPELL_SCHOOL, MAX_TRAINER_TYPE, CreatureTemplate::Models, CreatureTemplate::Movement, CreatureTemplate::MovementType, CreatureTemplate::npcflag, CreatureTemplate::PetSpellDataId, CreatureTemplate::RangeAttackTime, CreatureTemplate::rank, sCreatureAIRegistry, sCreatureFamilyStore, sCreatureSpellDataStore, sCreatureTypeStore, CreatureTemplate::ScriptID, sFactionTemplateStore, CreatureTemplate::speed_run, CreatureTemplate::speed_walk, SPELL_SCHOOL_NORMAL, CreatureTemplate::spells, sSpellMgr, sVehicleStore, CreatureTemplate::trainer_class, CreatureTemplate::trainer_race, CreatureTemplate::trainer_spell, CreatureTemplate::trainer_type, CreatureTemplate::type, CreatureTemplate::unit_class, UNIT_CLASS_WARRIOR, UNIT_NPC_FLAG_GOSSIP, UNIT_NPC_FLAG_TRAINER, and CreatureTemplate::VehicleId.
Referenced by LoadCreatureTemplates().
|
static |
References GetMainPartOfName(), MAX_DECLINED_NAME_CASES, DeclinedName::name, and Utf8toWStr().
Referenced by WorldSession::HandlePetRename(), and WorldSession::HandleSetPlayerDeclinedNames().
|
static |
References CONFIG_MIN_PET_NAME, CONFIG_STRICT_PET_NAMES, isValidString(), MAX_PET_NAME, PET_NAME_INVALID, PET_NAME_MIXED_LANGUAGES, PET_NAME_PROFANE, PET_NAME_RESERVED, PET_NAME_SUCCESS, PET_NAME_TOO_LONG, PET_NAME_TOO_SHORT, sObjectMgr, sWorld, and Utf8toWStr().
Referenced by WorldSession::HandlePetRename().
|
static |
References CHAR_NAME_INVALID_CHARACTER, CHAR_NAME_MIXED_LANGUAGES, CHAR_NAME_PROFANE, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_NAME_THREE_CONSECUTIVE, CHAR_NAME_TOO_LONG, CHAR_NAME_TOO_SHORT, CONFIG_MIN_PLAYER_NAME, CONFIG_STRICT_PLAYER_NAMES, isValidString(), MAX_PLAYER_NAME, sObjectMgr, sWorld, Utf8toWStr(), and wstrToLower().
Referenced by character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharFactionOrRaceChangeCallback(), WorldSession::HandleCharRenameOpcode(), PlayerDumpReader::LoadDump(), Player::LoadFromDB(), and character_commandscript::ValidatePDumpTarget().
|
static |
References CreatureTemplate::dynamicflags, CreatureData::dynamicflags, CreatureTemplate::npcflag, CreatureData::npcflag, CreatureTemplate::unit_flags, and CreatureData::unit_flags.
Referenced by Creature::UpdateEntry().
|
static |
References CREATURE_FLAG_EXTRA_TRIGGER, CreatureData::displayid, CreatureTemplate::flags_extra, CreatureTemplate::GetFirstInvisibleModel(), CreatureTemplate::GetModelWithDisplayId(), and CreatureTemplate::GetRandomValidModel().
Referenced by npc_shattrath_daily_quest::DoAction(), Creature::GetNativeObjectScale(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), Creature::InitEntry(), and SmartScript::ProcessAction().
void ObjectMgr::DeleteCreatureData | ( | ObjectGuid::LowType | spawnId | ) |
References _creatureDataStore, GetCreatureData(), and RemoveCreatureFromGrid().
bool ObjectMgr::DeleteGameTele | ( | std::string_view | name | ) |
References _gameTeleStore, PreparedStatementBase::SetData(), Utf8toWStr(), WORLD_DEL_GAME_TELE, WorldDatabase, and wstrToLower().
void ObjectMgr::DeleteGOData | ( | ObjectGuid::LowType | guid | ) |
References _gameObjectDataStore, GetGameObjectData(), and RemoveGameobjectFromGrid().
uint32 ObjectMgr::GenerateAuctionID | ( | ) |
References _auctionId, ERROR_EXIT_CODE, LOG_ERROR, and World::StopNow().
uint32 ObjectMgr::GenerateCreatureSpawnId | ( | ) |
References _creatureSpawnId, ERROR_EXIT_CODE, LOG_ERROR, and World::StopNow().
Referenced by AddCreData().
uint64 ObjectMgr::GenerateEquipmentSetGuid | ( | ) |
References _equipmentSetGuid, ERROR_EXIT_CODE, LOG_ERROR, and World::StopNow().
uint32 ObjectMgr::GenerateGameObjectSpawnId | ( | ) |
References _gameObjectSpawnId, ERROR_EXIT_CODE, LOG_ERROR, and World::StopNow().
Referenced by AddGOData().
uint32 ObjectMgr::GenerateMailID | ( | ) |
References _mailId, _mailIdMutex, ERROR_EXIT_CODE, LOG_ERROR, and World::StopNow().
std::string ObjectMgr::GeneratePetName | ( | uint32 | entry | ) |
References _petHalfName0, _petHalfName1, CreatureTemplate::family, GetCreatureTemplate(), GetPetName(), CreatureTemplate::Name, sWorld, and urand().
Referenced by GeneratePetNameLocale().
std::string ObjectMgr::GeneratePetNameLocale | ( | uint32 | entry, |
LocaleConstant | locale | ||
) |
References _petHalfLocaleName0, _petHalfLocaleName1, GeneratePetName(), and urand().
uint32 ObjectMgr::GeneratePetNumber | ( | ) |
References _hiPetNumber, and _hiPetNumberMutex.
|
inline |
References _accessRequirementStore.
|
inline |
References _acoreStringStore.
Referenced by GetAcoreString(), and GetAcoreStringForDBCLocale().
char const * ObjectMgr::GetAcoreString | ( | uint32 | entry, |
LocaleConstant | locale | ||
) | const |
References AcoreString::Content, DEFAULT_LOCALE, GetAcoreString(), and LOG_ERROR.
|
inline |
References DBCLocaleIndex, and GetAcoreString().
|
inline |
References _areaTriggerScriptStore.
|
inline |
References _creatureDataStore.
|
inline |
References _gameObjectDataStore.
|
inline |
References _serverMailStore.
|
inline |
References _areaTriggerStore.
Referenced by GetGoBackTrigger(), LoadAreaTriggerScripts(), LoadAreaTriggerTeleports(), LoadQuestAreaTriggers(), and LoadTavernAreaTriggers().
References _areaTriggerScriptStore.
|
inline |
References _areaTriggerTeleportStore.
int32 ObjectMgr::GetBaseReputationOf | ( | FactionEntry const * | factionEntry, |
uint8 | race, | ||
uint8 | playerClass | ||
) |
References FactionEntry::BaseRepClassMask, FactionEntry::BaseRepRaceMask, and FactionEntry::BaseRepValue.
References _baseXPTable.
|
inline |
References _broadcastTextStore.
Referenced by LoadGossipMenuItems(), LoadGossipText(), and LoadScripts().
|
inline |
References _emptyCellObjectGuids, _mapObjectGuidsStore, and MAKE_PAIR32().
CreatureAddon const * ObjectMgr::GetCreatureAddon | ( | ObjectGuid::LowType | lowguid | ) |
References _creatureAddonStore.
CreatureBaseStats const * ObjectMgr::GetCreatureBaseStats | ( | uint8 | level, |
uint8 | unitClass | ||
) |
References _creatureBaseStatsStore, MAKE_PAIR16(), and MAX_EXPANSIONS.
Referenced by AddCreData().
|
inline |
References _creatureDataStore.
Referenced by DeleteCreatureData(), LoadCreatureAddons(), LoadCreatureMovementOverrides(), LoadLinkedRespawn(), and SetCreatureLinkedRespawn().
|
inline |
References _creatureLocaleStore.
CreatureModelInfo const * ObjectMgr::GetCreatureModelInfo | ( | uint32 | modelId | ) | const |
References _creatureModelStore.
Referenced by GetCreatureModelRandomGender(), and LoadCreatureTemplateModels().
CreatureModelInfo const * ObjectMgr::GetCreatureModelRandomGender | ( | CreatureModel * | model, |
CreatureTemplate const * | creatureTemplate | ||
) | const |
References CreatureModel::CreatureDisplayID, GetCreatureModelInfo(), LOG_ERROR, CreatureModelInfo::modelid_other_gender, CreatureTemplate::Models, and urand().
Referenced by GetTaxiMountDisplayId().
CreatureMovementData const * ObjectMgr::GetCreatureMovementOverride | ( | ObjectGuid::LowType | spawnId | ) | const |
References _creatureMovementOverrides, and Acore::Containers::MapGetValuePtr().
|
inline |
References _creatureQuestInvolvedRelations.
|
inline |
References _creatureQuestInvolvedRelations.
|
inline |
References _creatureQuestItemStore.
|
inline |
References _creatureQuestItemStore.
|
inline |
References _creatureQuestRelations.
|
inline |
References _creatureQuestRelations.
CreatureTemplate const * ObjectMgr::GetCreatureTemplate | ( | uint32 | entry | ) |
References _creatureTemplateStoreFast.
Referenced by AddCreData(), AddSpellToTrainer(), CheckCreatureTemplate(), GeneratePetName(), GetTaxiMountDisplayId(), LoadCreatureQuestEnders(), LoadCreatureQuestItems(), LoadCreatureQuestStarters(), LoadCreatures(), LoadCreatureTemplateModels(), LoadInstanceEncounters(), LoadMailLevelRewards(), LoadNPCSpellClickSpells(), LoadReputationOnKill(), LoadScripts(), and LoadTempSummons().
CreatureAddon const * ObjectMgr::GetCreatureTemplateAddon | ( | uint32 | entry | ) |
References _creatureTemplateAddonStore.
|
inline |
References _creatureTemplateStore.
|
inline |
References DBCLocaleIndex.
|
inline |
References _dungeonEncounterStore, and MAKE_PAIR32().
EquipmentInfo const * ObjectMgr::GetEquipmentInfo | ( | uint32 | entry, |
int8 & | id | ||
) |
References _equipmentInfoStore, and urand().
Referenced by LoadCreatures().
References _fishingBaseForAreaStore.
GameObjectAddon const * ObjectMgr::GetGameObjectAddon | ( | ObjectGuid::LowType | lowguid | ) |
References _gameObjectAddonStore.
|
inline |
References _gameObjectDataStore.
Referenced by DeleteGOData(), LoadGameObjectAddons(), LoadLinkedRespawn(), and LoadScripts().
|
inline |
References _gameObjectLocaleStore.
|
inline |
References _gameObjectQuestItemStore.
|
inline |
References _gameObjectQuestItemStore.
GameObjectTemplate const * ObjectMgr::GetGameObjectTemplate | ( | uint32 | entry | ) |
References _gameObjectTemplateStore.
Referenced by AddGOData(), IsGameObjectStaticTransport(), LoadGameobjectQuestEnders(), LoadGameObjectQuestItems(), LoadGameobjectQuestStarters(), LoadGameobjects(), LoadQuests(), LoadScripts(), and LoadTempSummons().
GameObjectTemplateAddon const * ObjectMgr::GetGameObjectTemplateAddon | ( | uint32 | entry | ) | const |
References _gameObjectTemplateAddonStore.
|
inline |
References _gameObjectTemplateStore.
GameTele const * ObjectMgr::GetGameTele | ( | std::string_view | name, |
bool | exactSearch = false |
||
) | const |
References _gameTeleStore, Utf8toWStr(), GameTele::wnameLow, and wstrToLower().
References _gameTeleStore.
|
inline |
References _gameTeleStore.
|
inline |
AreaTriggerTeleport const * ObjectMgr::GetGoBackTrigger | ( | uint32 | Map | ) | const |
References _areaTriggerTeleportStore, MapEntry::entrance_map, GetAreaTrigger(), MapEntry::IsDungeon(), AreaTrigger::map, InstanceTemplate::Parent, sMapStore, and sObjectMgr.
|
inline |
References _goQuestInvolvedRelations.
|
inline |
References _goQuestInvolvedRelations.
|
inline |
References _goQuestRelations.
|
inline |
References _goQuestRelations.
|
inline |
References _gossipMenuItemsLocaleStore.
|
inline |
References _gossipMenuItemsStore.
|
inline |
References _gossipMenuItemsStore.
|
inline |
References _gossipMenusStore.
|
inline |
References _gossipMenusStore.
GossipText const * ObjectMgr::GetGossipText | ( | uint32 | Text_ID | ) | const |
References _gossipTextStore.
Referenced by LoadGossipMenu().
|
inlineprivate |
References _guidGenerators.
InstanceTemplate const * ObjectMgr::GetInstanceTemplate | ( | uint32 | mapId | ) |
References _instanceTemplateStore.
|
inline |
References _itemLocaleStore.
|
inline |
References _itemSetNameStore.
|
inline |
References _itemSetNameLocaleStore.
ItemTemplate const * ObjectMgr::GetItemTemplate | ( | uint32 | entry | ) |
References _itemTemplateStoreFast.
Referenced by LoadAccessRequirements(), LoadFactionChangeItems(), LoadItemTemplates(), LoadPlayerInfo(), and LoadScripts().
|
inline |
References _itemTemplateStore.
|
inline |
References _itemTemplateStoreFast.
|
inline |
References _linkedRespawnStore, and ObjectGuid::Empty.
|
inlinestatic |
|
inlinestatic |
Referenced by GossipMenu::AddMenuItem(), AuctionHouseObject::BuildListAuctionItems(), AchievementMgr::CompletedAchievement(), CreatureTextMgr::GetLocalizedChatString(), WorldSession::HandleCreatureQueryOpcode(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleItemNameQueryOpcode(), WorldSession::HandleItemQuerySingleOpcode(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandlePageTextQueryOpcode(), LinkValidator< LinkTags::item >::IsTextValid(), LinkValidator< LinkTags::quest >::IsTextValid(), Player::PrepareGossipMenu(), Player::PrettyPrintRequirementsItemsList(), Player::PrettyPrintRequirementsQuestList(), Player::Satisfy(), PlayerMenu::SendGossipMenu(), PlayerMenu::SendPointOfInterest(), Player::SendPreparedQuest(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), and SortAuction().
|
inline |
References _mailLevelRewardStore.
AreaTriggerTeleport const * ObjectMgr::GetMapEntranceTrigger | ( | uint32 | Map | ) | const |
Searches for the areatrigger which teleports players to the given map
References _areaTriggerTeleportStore.
|
inline |
References _emptyCellObjectGuidsMap, _mapObjectGuidsStore, and MAKE_PAIR32().
|
inline |
References _moduleStringStore.
Referenced by GetModuleString().
std::string const * ObjectMgr::GetModuleString | ( | std::string | module, |
uint32 | id, | ||
LocaleConstant | locale | ||
) | const |
References ModuleString::Content, DEFAULT_LOCALE, GetModuleString(), and LOG_ERROR.
References TaxiNodesEntry::map_id, TaxiNodesEntry::MountCreatureID, sTaxiNodesMask, sTaxiNodesStore, TaxiMaskSize, TEAM_ALLIANCE, TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.
|
inline |
References _npcTextLocaleStore.
|
inline |
References _cacheTrainerSpellStore.
|
inline |
References _cacheVendorItemStore.
Referenced by IsVendorItemValid().
References _pageTextStore.
Referenced by LoadGameObjectTemplate(), and LoadItemTemplates().
|
inline |
References _pageTextLocaleStore.
PetLevelInfo const * ObjectMgr::GetPetLevelInfo | ( | uint32 | creature_id, |
uint8 | level | ||
) | const |
References _petInfoStore, CONFIG_MAX_PLAYER_LEVEL, and sWorld.
|
inline |
References _playerClassInfo, and MAX_CLASSES.
void ObjectMgr::GetPlayerClassLevelInfo | ( | uint32 | class_, |
uint8 | level, | ||
PlayerClassLevelInfo * | info | ||
) | const |
References _playerClassInfo, CONFIG_MAX_PLAYER_LEVEL, PlayerClassInfo::levelInfo, MAX_CLASSES, and sWorld.
PlayerInfo const * ObjectMgr::GetPlayerInfo | ( | uint32 | race, |
uint32 | class_ | ||
) | const |
References _playerInfo, MAX_CLASSES, and MAX_RACES.
void ObjectMgr::GetPlayerLevelInfo | ( | uint32 | race, |
uint32 | class_, | ||
uint8 | level, | ||
PlayerLevelInfo * | info | ||
) | const |
References _playerInfo, BuildPlayerLevelInfo(), CONFIG_MAX_PLAYER_LEVEL, PlayerInfo::levelInfo, MAX_CLASSES, and MAX_RACES.
|
inline |
References _pointsOfInterestStore.
Referenced by LoadGossipMenuItems().
|
inline |
References _pointOfInterestLocaleStore.
References _questAreaTriggerStore.
QuestGreeting const * ObjectMgr::GetQuestGreeting | ( | TypeID | type, |
uint32 | id | ||
) | const |
References _questGreetingStore, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
|
inline |
References _questLocaleStore.
References _questMoneyRewards, and MAX_QUEST_MONEY_REWARDS.
|
inline |
References _questOfferRewardLocaleStore.
|
inline |
References _questPOIStore.
|
inline |
References _questRequestItemsLocaleStore.
References _questTemplatesFast.
Referenced by LoadAccessRequirements(), LoadQuestAreaTriggers(), LoadQuests(), and LoadScripts().
|
inline |
References _questTemplates.
|
inline |
References _repRewardRateStore.
|
inline |
References _repSpilloverTemplateStore.
|
inline |
References _repOnKillStore.
uint32 ObjectMgr::GetScriptId | ( | std::string const & | name | ) |
References _scriptNamesStore.
Referenced by LoadAreaTriggerScripts(), LoadCreatures(), LoadCreatureTemplate(), LoadGameobjects(), LoadGameObjectTemplate(), and LoadSpellScriptNames().
std::string const & ObjectMgr::GetScriptName | ( | uint32 | id | ) | const |
References _scriptNamesStore.
Referenced by ValidateSpellScripts().
|
inline |
References _scriptNamesStore.
|
inline |
References _spellClickInfoStore.
SpellScriptsBounds ObjectMgr::GetSpellScriptsBounds | ( | uint32 | spell_id | ) |
References _spellScriptsStore.
|
inline |
Gets temp summon data for all creatures of specified group.
summonerId | Summoner's entry. |
summonerType | Summoner's type, see SummonerType for available types. |
group | Id of required group. |
References _tempSummonDataStore.
References CreatureModel::CreatureDisplayID, GetCreatureModelRandomGender(), GetCreatureTemplate(), CreatureTemplate::GetRandomValidModel(), LOG_ERROR, TaxiNodesEntry::MountCreatureID, sTaxiNodesStore, and TEAM_ALLIANCE.
References sTaxiPathSetBySource.
VehicleAccessoryList const * ObjectMgr::GetVehicleAccessoryList | ( | Vehicle * | veh | ) | const |
References _vehicleAccessoryStore, _vehicleTemplateAccessoryStore, Vehicle::GetBase(), Vehicle::GetCreatureEntry(), and Object::ToCreature().
|
inline |
References _vehicleSeatAddonStore.
References _playerXPperLevel.
void ObjectMgr::InitializeSpellInfoPrecomputedData | ( | ) |
References SpellMgr::ComputeIsSpellValid(), sSpellMgr, and sSpellStore.
|
static |
bool ObjectMgr::IsGameObjectStaticTransport | ( | uint32 | entry | ) |
References GAMEOBJECT_TYPE_TRANSPORT, GetGameObjectTemplate(), and GameObjectTemplate::type.
bool ObjectMgr::IsProfanityName | ( | std::string_view | name | ) | const |
References _profanityNamesStore, Utf8toWStr(), and wstrToLower().
Referenced by AddProfanityPlayerName().
bool ObjectMgr::IsReservedName | ( | std::string_view | name | ) | const |
References _reservedNamesStore, Utf8toWStr(), and wstrToLower().
Referenced by AddReservedPlayerName().
References _tavernAreaTriggerStore.
|
inline |
References _transportMaps.
|
static |
References CONFIG_STRICT_CHANNEL_NAMES, isValidString(), MAX_CHANNEL_NAME, sWorld, and Utf8toWStr().
|
static |
References CONFIG_MIN_CHARTER_NAME, CONFIG_STRICT_CHARTER_NAMES, isValidString(), MAX_CHARTER_NAME, sObjectMgr, sWorld, and Utf8toWStr().
Referenced by WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionRenameOpcode(), ArenaTeam::SetName(), and Guild::SetName().
bool ObjectMgr::IsVendorItemValid | ( | uint32 | vendor_entry, |
uint32 | item, | ||
int32 | maxcount, | ||
uint32 | ptime, | ||
uint32 | ExtendedCost, | ||
Player * | player = nullptr , |
||
std::set< uint32 > * | skip_vendors = nullptr , |
||
uint32 | ORnpcflag = 0 |
||
) | const |
References VendorItemData::FindItemCostPair(), GetNpcVendorItemList(), Player::GetSession(), LANG_EXTENDED_COST_NOT_EXIST, LANG_ITEM_ALREADY_IN_LIST, LANG_ITEM_NOT_FOUND, LOG_ERROR, ChatHandler::PSendSysMessage(), sItemExtendedCostStore, and sObjectMgr.
Referenced by LoadReferenceVendor(), and LoadVendors().
void ObjectMgr::LoadAccessRequirements | ( | ) |
References _accessRequirementStore, Field::Get(), GetItemTemplate(), getMSTime(), GetMSTimeDiffToNow(), GetQuestTemplate(), Field::IsNull(), LOG_ERROR, LOG_INFO, LOG_WARN, ProgressionRequirement::priority, sAchievementStore, and WorldDatabase.
bool ObjectMgr::LoadAcoreStrings | ( | ) |
References _acoreStringStore, AddLocaleString(), DEFAULT_LOCALE, Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_INFO, LOG_WARN, TOTAL_LOCALES, and WorldDatabase.
void ObjectMgr::LoadAreaTriggers | ( | ) |
References _areaTriggerStore, AreaTrigger::entry, Field::Get(), getMSTime(), GetMSTimeDiffToNow(), AreaTrigger::height, AreaTrigger::length, LOG_ERROR, LOG_INFO, LOG_WARN, AreaTrigger::map, AreaTrigger::orientation, AreaTrigger::radius, sMapStore, AreaTrigger::width, WorldDatabase, AreaTrigger::x, AreaTrigger::y, and AreaTrigger::z.
void ObjectMgr::LoadAreaTriggerScripts | ( | ) |
References _areaTriggerScriptStore, Field::Get(), GetAreaTrigger(), getMSTime(), GetMSTimeDiffToNow(), GetScriptId(), LOG_ERROR, LOG_INFO, LOG_WARN, and WorldDatabase.
void ObjectMgr::LoadAreaTriggerTeleports | ( | ) |
References _areaTriggerTeleportStore, Field::Get(), GetAreaTrigger(), getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, LOG_WARN, sMapStore, AreaTriggerTeleport::target_mapId, and WorldDatabase.
void ObjectMgr::LoadBroadcastTextLocales | ( | ) |
References _broadcastTextStore, AddLocaleString(), Field::Get(), GetLocaleByName(), getMSTime(), GetMSTimeDiffToNow(), LOCALE_enUS, LOG_ERROR, LOG_INFO, LOG_WARN, and WorldDatabase.
void ObjectMgr::LoadBroadcastTexts | ( | ) |
References _broadcastTextStore, DEFAULT_LOCALE, BroadcastText::EmoteDelay1, BroadcastText::EmoteDelay2, BroadcastText::EmoteDelay3, BroadcastText::EmoteId1, BroadcastText::EmoteId2, BroadcastText::EmoteId3, BroadcastText::EmotesID, BroadcastText::FemaleText, BroadcastText::Flags, Field::Get(), GetLanguageDescByID(), getMSTime(), GetMSTimeDiffToNow(), BroadcastText::Id, LANG_UNIVERSAL, BroadcastText::LanguageID, LOG_DEBUG, LOG_INFO, LOG_WARN, BroadcastText::MaleText, sEmotesStore, BroadcastText::SoundEntriesId, sSoundEntriesStore, and WorldDatabase.
void ObjectMgr::LoadCreatureAddons | ( | ) |
References _creatureAddonStore, AsUnderlyingType(), CreatureAddon::auras, CreatureAddon::bytes1, CreatureAddon::bytes2, CreatureAddon::emote, Field::Get(), GetCreatureData(), SpellInfo::GetDuration(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::Id, IDLE_MOTION_TYPE, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARN, CreatureAddon::mount, CreatureAddon::path_id, sCreatureDisplayInfoStore, sEmotesStore, sSpellMgr, Acore::Tokenize(), CreatureAddon::visibilityDistanceType, WAYPOINT_MOTION_TYPE, and WorldDatabase.
void ObjectMgr::LoadCreatureClassLevelStats | ( | ) |
References _creatureBaseStatsStore, CreatureBaseStats::AttackPower, CreatureBaseStats::BaseArmor, CreatureBaseStats::BaseDamage, CreatureBaseStats::BaseHealth, CreatureBaseStats::BaseMana, CLASSMASK_ALL_CREATURES, Field::Get(), getMSTime(),