TrinityCore
Loading...
Searching...
No Matches
ObjectMgr.h File Reference
#include "Common.h"
#include "ConditionMgr.h"
#include "CreatureData.h"
#include "DatabaseEnvFwd.h"
#include "FlatSet.h"
#include "GameObjectData.h"
#include "ItemTemplate.h"
#include "IteratorPair.h"
#include "MovementDefines.h"
#include "NPCHandler.h"
#include "ObjectDefines.h"
#include "ObjectGuid.h"
#include "ObjectGuidSequenceGenerator.h"
#include "PlayerChoice.h"
#include "Position.h"
#include "QuestDef.h"
#include "RaceMask.h"
#include "SceneDefines.h"
#include "SharedDefines.h"
#include "Trainer.h"
#include "VehicleDefines.h"
#include "UniqueTrackablePtr.h"
#include <atomic>
#include <iterator>
#include <map>
#include <unordered_map>
+ Include dependency graph for ObjectMgr.h:

Go to the source code of this file.

Classes

struct  PageText
 
struct  TempSummonGroupKey
 Key for storing temp summon data in TempSummonDataContainer. More...
 
struct  TempSummonData
 Stores data for temp summons. More...
 
struct  InstanceTemplate
 
struct  GameTele
 
struct  ScriptInfo
 
struct  InstanceSpawnGroupInfo
 
struct  SpellClickInfo
 
struct  AreaTriggerPolygon
 
struct  AccessRequirement
 
struct  GridObjectGuids
 
struct  TrinityString
 
struct  GossipMenuItemsLocale
 
struct  PointOfInterestLocale
 
struct  PlayerChoiceResponseLocale
 
struct  PlayerChoiceLocale
 
struct  QuestRelationResult
 
struct  QuestRelationResult::Iterator
 
struct  PlayerCreateInfoItem
 
struct  PlayerLevelInfo
 
struct  PlayerCreateInfoAction
 
struct  PlayerInfo
 
struct  PlayerInfo::CreatePosition
 
struct  PetLevelInfo
 
struct  MailLevelReward
 
struct  RepRewardRate
 
struct  ReputationOnKillEntry
 
struct  RepSpilloverTemplate
 
struct  PointOfInterest
 
struct  GossipMenuItems
 
struct  GossipMenus
 
struct  GossipMenuAddon
 
struct  QuestPOIBlobPoint
 
struct  QuestPOIBlobData
 
struct  QuestPOIData
 
struct  WorldSafeLocsEntry
 
struct  GraveyardData
 
struct  SceneTemplate
 
struct  SkillTiersEntry
 
struct  ExtendedPlayerName
 
struct  TerrainSwapInfo
 
struct  PhaseInfoStruct
 
struct  PhaseAreaInfo
 
struct  ClassAvailability
 
struct  RaceUnlockRequirement
 
struct  RaceClassAvailability
 
class  ObjectMgr
 
class  ObjectMgr::ScriptNameContainer
 
struct  ObjectMgr::ScriptNameContainer::Entry
 

Macros

#define MAX_SKILL_STEP   16
 
#define MAX_PLAYER_NAME   12
 
#define MAX_INTERNAL_PLAYER_NAME   15
 
#define MAX_PET_NAME   12
 
#define MAX_CHARTER_NAME   24
 
#define SPAWNGROUP_MAP_UNSET   0xFFFFFFFF
 
#define sObjectMgr   ObjectMgr::instance()
 

Typedefs

typedef std::map< uint32, PageText > PageTextContainer
 
typedef std::unordered_map< uint16, InstanceTemplate > InstanceTemplateContainer
 
typedef std::unordered_map< uint32, GameTele > GameTeleContainer
 
typedef std::multimap< uint32, ScriptInfo > ScriptMap
 
typedef std::map< uint32, ScriptMap > ScriptMapMap
 
typedef std::multimap< uint32, std::pair< uint32, bool > > SpellScriptsContainer
 
typedef std::pair< SpellScriptsContainer::iterator, SpellScriptsContainer::iterator > SpellScriptsBounds
 
typedef std::multimap< uint32, SpellClickInfo > SpellClickInfoContainer
 
using AreaTriggerTeleport = WorldSafeLocsEntry
 
typedef Trinity::Containers::FlatSet< ObjectGuid::LowType > GridGuidSet
 
typedef std::unordered_map< uint32, GridObjectGuids > GridObjectGuidsMap
 
typedef std::unordered_map< std::pair< uint32, Difficulty >, GridObjectGuidsMap > MapObjectGuids
 
typedef std::map< std::tuple< uint32, Difficulty, uint32 >, GridObjectGuidsMap > MapPersonalObjectGuids
 
typedef std::map< ObjectGuid, ObjectGuid > LinkedRespawnContainer
 
typedef std::unordered_map< uint32, CreatureTemplate > CreatureTemplateContainer
 
typedef std::unordered_map< uint32, CreatureAddon > CreatureTemplateAddonContainer
 
typedef std::unordered_map< uint32, std::vector< float > > CreatureTemplateSparringContainer
 
typedef std::unordered_map< ObjectGuid::LowType, CreatureData > CreatureDataContainer
 
typedef std::unordered_map< ObjectGuid::LowType, CreatureAddon > CreatureAddonContainer
 
typedef std::unordered_map< uint16, CreatureBaseStats > CreatureBaseStatsContainer
 
typedef std::unordered_map< uint8, EquipmentInfo > EquipmentInfoContainerInternal
 
typedef std::unordered_map< uint32, EquipmentInfoContainerInternal > EquipmentInfoContainer
 
typedef std::unordered_map< uint32, CreatureModelInfo > CreatureModelContainer
 
typedef std::unordered_map< std::pair< uint32, Difficulty >, std::vector< uint32 > > CreatureQuestItemMap
 
typedef std::unordered_map< uint32, std::vector< int32 > > CreatureQuestCurrenciesMap
 
typedef std::unordered_map< std::pair< ObjectGuid::LowType, Difficulty >, CreatureStaticFlagsOverride > CreatureStaticFlagsOverrideMap
 
typedef std::unordered_map< uint32, DestructibleHitpoint > DestructibleHitpointContainer
 
typedef std::unordered_map< uint32, GameObjectTemplate > GameObjectTemplateContainer
 
typedef std::unordered_map< uint32, GameObjectTemplateAddon > GameObjectTemplateAddonContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectOverride > GameObjectOverrideContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectData > GameObjectDataContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectAddon > GameObjectAddonContainer
 
typedef std::unordered_map< uint32, std::vector< uint32 > > GameObjectQuestItemMap
 
typedef std::unordered_map< uint32, SpawnGroupTemplateData > SpawnGroupDataContainer
 
typedef std::multimap< uint32, SpawnMetadata const * > SpawnGroupLinkContainer
 
typedef std::unordered_map< uint16, std::vector< InstanceSpawnGroupInfo > > InstanceSpawnGroupContainer
 
typedef std::unordered_map< uint32, SpawnTrackingTemplateData > SpawnTrackingTemplateContainer
 
typedef std::multimap< uint32, SpawnMetadata const * > SpawnTrackingLinkContainer
 
typedef std::unordered_map< uint32, std::vector< QuestObjective const * > > SpawnTrackingQuestObjectiveContainer
 
typedef std::map< TempSummonGroupKey, std::vector< TempSummonData > > TempSummonDataContainer
 
typedef std::unordered_map< uint32, CreatureLocale > CreatureLocaleContainer
 
typedef std::unordered_map< uint32, GameObjectLocale > GameObjectLocaleContainer
 
typedef std::unordered_map< uint32, ItemTemplate > ItemTemplateContainer
 
typedef std::unordered_map< uint32, QuestTemplateLocale > QuestTemplateLocaleContainer
 
typedef std::unordered_map< uint32, QuestObjectivesLocale > QuestObjectivesLocaleContainer
 
typedef std::unordered_map< uint32, QuestOfferRewardLocale > QuestOfferRewardLocaleContainer
 
typedef std::unordered_map< uint32, QuestRequestItemsLocale > QuestRequestItemsLocaleContainer
 
typedef std::unordered_map< uint32, PageTextLocale > PageTextLocaleContainer
 
typedef std::unordered_map< uint32, std::vector< uint32 > > UiMapQuestLinesMap
 
typedef std::unordered_map< uint32, std::vector< uint32 > > UiMapQuestsMap
 
typedef std::unordered_map< uint32, VehicleSeatAddon > VehicleSeatAddonContainer
 
typedef std::unordered_map< std::pair< uint32, uint32 >, GossipMenuItemsLocale > GossipMenuItemsLocaleContainer
 
typedef std::unordered_map< uint32, PointOfInterestLocale > PointOfInterestLocaleContainer
 
typedef std::unordered_map< uint32, TrinityString > TrinityStringContainer
 
typedef std::multimap< uint32, uint32 > QuestRelations
 
typedef std::multimap< uint32, uint32 > QuestRelationsReverse
 
typedef std::multimap< int32, uint32 > ExclusiveQuestGroups
 
typedef std::pair< ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator > ExclusiveQuestGroupsBounds
 
typedef std::vector< PlayerCreateInfoItem > PlayerCreateInfoItems
 
typedef std::vector< uint32 > PlayerCreateInfoSpells
 
typedef std::vector< PlayerCreateInfoAction > PlayerCreateInfoActions
 
typedef std::vector< SkillRaceClassInfoEntry const * > PlayerCreateInfoSkills
 
typedef std::list< MailLevelReward > MailLevelRewardList
 
typedef std::unordered_map< uint8, MailLevelRewardList > MailLevelRewardContainer
 
typedef std::multimap< uint32, GossipMenus > GossipMenusContainer
 
typedef std::pair< GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator > GossipMenusMapBounds
 
typedef std::pair< GossipMenusContainer::iterator, GossipMenusContainer::iterator > GossipMenusMapBoundsNonConst
 
typedef std::multimap< uint32, GossipMenuItems > GossipMenuItemsContainer
 
typedef std::unordered_map< uint32, GossipMenuAddon > GossipMenuAddonContainer
 
typedef std::unordered_map< uint32, QuestPOIData > QuestPOIContainer
 
typedef std::array< std::unordered_map< uint32, QuestGreeting >, 2 > QuestGreetingContainer
 
typedef std::array< std::unordered_map< uint32, QuestGreetingLocale >, 2 > QuestGreetingLocaleContainer
 
typedef std::multimap< uint32, GraveyardData > GraveyardContainer
 
typedef std::pair< GraveyardContainer::const_iterator, GraveyardContainer::const_iterator > GraveyardMapBounds
 
typedef std::pair< GraveyardContainer::iterator, GraveyardContainer::iterator > GraveyardMapBoundsNonConst
 
typedef std::unordered_map< uint32, VendorItemData > CacheVendorItemContainer
 
typedef std::unordered_map< uint32, std::string > RealmNameContainer
 
typedef std::unordered_map< uint32, SceneTemplate > SceneTemplateContainer
 
typedef std::unordered_map< uint32, std::string > PhaseNameContainer
 

Enumerations

enum  SummonerType { SUMMONER_TYPE_CREATURE = 0 , SUMMONER_TYPE_GAMEOBJECT = 1 , SUMMONER_TYPE_MAP = 2 }
 
enum  ScriptCommands {
  SCRIPT_COMMAND_TALK = 0 , SCRIPT_COMMAND_EMOTE = 1 , SCRIPT_COMMAND_FIELD_SET_DEPRECATED = 2 , SCRIPT_COMMAND_MOVE_TO = 3 ,
  SCRIPT_COMMAND_FLAG_SET_DEPRECATED = 4 , SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED = 5 , SCRIPT_COMMAND_TELEPORT_TO = 6 , SCRIPT_COMMAND_QUEST_EXPLORED = 7 ,
  SCRIPT_COMMAND_KILL_CREDIT = 8 , SCRIPT_COMMAND_RESPAWN_GAMEOBJECT = 9 , SCRIPT_COMMAND_TEMP_SUMMON_CREATURE = 10 , SCRIPT_COMMAND_OPEN_DOOR = 11 ,
  SCRIPT_COMMAND_CLOSE_DOOR = 12 , SCRIPT_COMMAND_ACTIVATE_OBJECT = 13 , SCRIPT_COMMAND_REMOVE_AURA = 14 , SCRIPT_COMMAND_CAST_SPELL = 15 ,
  SCRIPT_COMMAND_PLAY_SOUND = 16 , SCRIPT_COMMAND_CREATE_ITEM = 17 , SCRIPT_COMMAND_DESPAWN_SELF = 18 , SCRIPT_COMMAND_LOAD_PATH = 20 ,
  SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT = 21 , SCRIPT_COMMAND_KILL = 22 , SCRIPT_COMMAND_ORIENTATION = 30 , SCRIPT_COMMAND_EQUIP = 31 ,
  SCRIPT_COMMAND_MODEL = 32 , SCRIPT_COMMAND_CLOSE_GOSSIP = 33 , SCRIPT_COMMAND_PLAYMOVIE = 34 , SCRIPT_COMMAND_MOVEMENT = 35 ,
  SCRIPT_COMMAND_PLAY_ANIMKIT = 36
}
 
enum  ChatType {
  CHAT_TYPE_SAY = 0 , CHAT_TYPE_YELL = 1 , CHAT_TYPE_TEXT_EMOTE = 2 , CHAT_TYPE_BOSS_EMOTE = 3 ,
  CHAT_TYPE_WHISPER = 4 , CHAT_TYPE_BOSS_WHISPER = 5 , CHAT_TYPE_ZONE_YELL = 6 , CHAT_TYPE_END = 255
}
 
enum  ScriptsType { SCRIPTS_FIRST = 1 , SCRIPTS_EVENT = SCRIPTS_FIRST , SCRIPTS_WAYPOINT , SCRIPTS_LAST }
 
enum  eScriptFlags {
  SF_TALK_USE_PLAYER = 0x1 , SF_EMOTE_USE_STATE = 0x1 , SF_TELEPORT_USE_CREATURE = 0x1 , SF_KILLCREDIT_REWARD_GROUP = 0x1 ,
  SF_REMOVEAURA_REVERSE = 0x1 , SF_CASTSPELL_SOURCE_TO_TARGET = 0 , SF_CASTSPELL_SOURCE_TO_SOURCE = 1 , SF_CASTSPELL_TARGET_TO_TARGET = 2 ,
  SF_CASTSPELL_TARGET_TO_SOURCE = 3 , SF_CASTSPELL_SEARCH_CREATURE = 4 , SF_CASTSPELL_TRIGGERED = 0x1 , SF_PLAYSOUND_TARGET_PLAYER = 0x1 ,
  SF_PLAYSOUND_DISTANCE_SOUND = 0x2 , SF_ORIENTATION_FACE_TARGET = 0x1
}
 
enum class  PlayerCreateMode : int8 { Normal = 0 , NPE = 1 , Max }
 
enum  SkillRangeType {
  SKILL_RANGE_LANGUAGE , SKILL_RANGE_LEVEL , SKILL_RANGE_MONO , SKILL_RANGE_RANK ,
  SKILL_RANGE_NONE
}
 
enum  QueryDataGroup {
  QUERY_DATA_CREATURES = 0x01 , QUERY_DATA_GAMEOBJECTS = 0x02 , QUERY_DATA_ITEMS = 0x04 , QUERY_DATA_QUESTS = 0x08 ,
  QUERY_DATA_POIS = 0x10 , QUERY_DATA_ALL = 0xFF
}
 

Functions

std::string GetScriptsTableNameByType (ScriptsType type)
 
ScriptMapMap * GetScriptsMapByType (ScriptsType type)
 
std::string GetScriptCommandName (ScriptCommands command)
 
SkillRangeType GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry)
 
TC_GAME_API bool normalizePlayerName (std::string &name)
 
ExtendedPlayerName ExtractExtendedPlayerName (std::string const &name)
 

Variables

TC_GAME_API ScriptMapMap sEventScripts
 

Macro Definition Documentation

◆ MAX_CHARTER_NAME

#define MAX_CHARTER_NAME   24

Definition at line 890 of file ObjectMgr.h.

◆ MAX_INTERNAL_PLAYER_NAME

#define MAX_INTERNAL_PLAYER_NAME   15

Definition at line 888 of file ObjectMgr.h.

◆ MAX_PET_NAME

#define MAX_PET_NAME   12

Definition at line 889 of file ObjectMgr.h.

◆ MAX_PLAYER_NAME

#define MAX_PLAYER_NAME   12

Definition at line 887 of file ObjectMgr.h.

◆ MAX_SKILL_STEP

#define MAX_SKILL_STEP   16

Definition at line 875 of file ObjectMgr.h.

◆ sObjectMgr

#define sObjectMgr   ObjectMgr::instance()

Definition at line 1873 of file ObjectMgr.h.

◆ SPAWNGROUP_MAP_UNSET

#define SPAWNGROUP_MAP_UNSET   0xFFFFFFFF

Definition at line 893 of file ObjectMgr.h.

Typedef Documentation

◆ AreaTriggerTeleport

Definition at line 451 of file ObjectMgr.h.

◆ CacheVendorItemContainer

typedef std::unordered_map<uint32, VendorItemData> CacheVendorItemContainer

Definition at line 849 of file ObjectMgr.h.

◆ CreatureAddonContainer

Definition at line 491 of file ObjectMgr.h.

◆ CreatureBaseStatsContainer

typedef std::unordered_map<uint16, CreatureBaseStats> CreatureBaseStatsContainer

Definition at line 492 of file ObjectMgr.h.

◆ CreatureDataContainer

Definition at line 490 of file ObjectMgr.h.

◆ CreatureLocaleContainer

typedef std::unordered_map<uint32, CreatureLocale> CreatureLocaleContainer

Definition at line 513 of file ObjectMgr.h.

◆ CreatureModelContainer

typedef std::unordered_map<uint32, CreatureModelInfo> CreatureModelContainer

Definition at line 495 of file ObjectMgr.h.

◆ CreatureQuestCurrenciesMap

typedef std::unordered_map<uint32, std::vector<int32> > CreatureQuestCurrenciesMap

Definition at line 497 of file ObjectMgr.h.

◆ CreatureQuestItemMap

typedef std::unordered_map<std::pair<uint32, Difficulty>, std::vector<uint32> > CreatureQuestItemMap

Definition at line 496 of file ObjectMgr.h.

◆ CreatureStaticFlagsOverrideMap

Definition at line 498 of file ObjectMgr.h.

◆ CreatureTemplateAddonContainer

typedef std::unordered_map<uint32, CreatureAddon> CreatureTemplateAddonContainer

Definition at line 488 of file ObjectMgr.h.

◆ CreatureTemplateContainer

typedef std::unordered_map<uint32, CreatureTemplate> CreatureTemplateContainer

Definition at line 487 of file ObjectMgr.h.

◆ CreatureTemplateSparringContainer

typedef std::unordered_map<uint32, std::vector<float> > CreatureTemplateSparringContainer

Definition at line 489 of file ObjectMgr.h.

◆ DestructibleHitpointContainer

Definition at line 499 of file ObjectMgr.h.

◆ EquipmentInfoContainer

Definition at line 494 of file ObjectMgr.h.

◆ EquipmentInfoContainerInternal

typedef std::unordered_map<uint8, EquipmentInfo> EquipmentInfoContainerInternal

Definition at line 493 of file ObjectMgr.h.

◆ ExclusiveQuestGroups

typedef std::multimap<int32, uint32> ExclusiveQuestGroups

Definition at line 608 of file ObjectMgr.h.

◆ ExclusiveQuestGroupsBounds

typedef std::pair<ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator> ExclusiveQuestGroupsBounds

Definition at line 609 of file ObjectMgr.h.

◆ GameObjectAddonContainer

Definition at line 504 of file ObjectMgr.h.

◆ GameObjectDataContainer

Definition at line 503 of file ObjectMgr.h.

◆ GameObjectLocaleContainer

typedef std::unordered_map<uint32, GameObjectLocale> GameObjectLocaleContainer

Definition at line 514 of file ObjectMgr.h.

◆ GameObjectOverrideContainer

Definition at line 502 of file ObjectMgr.h.

◆ GameObjectQuestItemMap

typedef std::unordered_map<uint32, std::vector<uint32> > GameObjectQuestItemMap

Definition at line 505 of file ObjectMgr.h.

◆ GameObjectTemplateAddonContainer

Definition at line 501 of file ObjectMgr.h.

◆ GameObjectTemplateContainer

Definition at line 500 of file ObjectMgr.h.

◆ GameTeleContainer

typedef std::unordered_map<uint32, GameTele> GameTeleContainer

Definition at line 167 of file ObjectMgr.h.

◆ GossipMenuAddonContainer

typedef std::unordered_map<uint32, GossipMenuAddon> GossipMenuAddonContainer

Definition at line 779 of file ObjectMgr.h.

◆ GossipMenuItemsContainer

Definition at line 778 of file ObjectMgr.h.

◆ GossipMenuItemsLocaleContainer

typedef std::unordered_map<std::pair<uint32, uint32>, GossipMenuItemsLocale> GossipMenuItemsLocaleContainer

Definition at line 531 of file ObjectMgr.h.

◆ GossipMenusContainer

typedef std::multimap<uint32, GossipMenus> GossipMenusContainer

Definition at line 775 of file ObjectMgr.h.

◆ GossipMenusMapBounds

typedef std::pair<GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator> GossipMenusMapBounds

Definition at line 776 of file ObjectMgr.h.

◆ GossipMenusMapBoundsNonConst

typedef std::pair<GossipMenusContainer::iterator, GossipMenusContainer::iterator> GossipMenusMapBoundsNonConst

Definition at line 777 of file ObjectMgr.h.

◆ GraveyardContainer

typedef std::multimap<uint32, GraveyardData> GraveyardContainer

Definition at line 845 of file ObjectMgr.h.

◆ GraveyardMapBounds

typedef std::pair<GraveyardContainer::const_iterator, GraveyardContainer::const_iterator> GraveyardMapBounds

Definition at line 846 of file ObjectMgr.h.

◆ GraveyardMapBoundsNonConst

typedef std::pair<GraveyardContainer::iterator, GraveyardContainer::iterator> GraveyardMapBoundsNonConst

Definition at line 847 of file ObjectMgr.h.

◆ GridGuidSet

◆ GridObjectGuidsMap

typedef std::unordered_map<uint32, GridObjectGuids> GridObjectGuidsMap

Definition at line 477 of file ObjectMgr.h.

◆ InstanceSpawnGroupContainer

typedef std::unordered_map<uint16, std::vector<InstanceSpawnGroupInfo> > InstanceSpawnGroupContainer

Definition at line 508 of file ObjectMgr.h.

◆ InstanceTemplateContainer

typedef std::unordered_map<uint16, InstanceTemplate> InstanceTemplateContainer

Definition at line 154 of file ObjectMgr.h.

◆ ItemTemplateContainer

typedef std::unordered_map<uint32, ItemTemplate> ItemTemplateContainer

Definition at line 515 of file ObjectMgr.h.

◆ LinkedRespawnContainer

Definition at line 486 of file ObjectMgr.h.

◆ MailLevelRewardContainer

typedef std::unordered_map<uint8, MailLevelRewardList> MailLevelRewardContainer

Definition at line 695 of file ObjectMgr.h.

◆ MailLevelRewardList

Definition at line 694 of file ObjectMgr.h.

◆ MapObjectGuids

typedef std::unordered_map<std::pair<uint32 , Difficulty>, GridObjectGuidsMap> MapObjectGuids

Definition at line 478 of file ObjectMgr.h.

◆ MapPersonalObjectGuids

Definition at line 479 of file ObjectMgr.h.

◆ PageTextContainer

typedef std::map<uint32, PageText> PageTextContainer

Definition at line 146 of file ObjectMgr.h.

◆ PageTextLocaleContainer

typedef std::unordered_map<uint32, PageTextLocale> PageTextLocaleContainer

Definition at line 520 of file ObjectMgr.h.

◆ PhaseNameContainer

typedef std::unordered_map<uint32, std::string> PhaseNameContainer

Definition at line 864 of file ObjectMgr.h.

◆ PlayerCreateInfoActions

Definition at line 645 of file ObjectMgr.h.

◆ PlayerCreateInfoItems

Definition at line 627 of file ObjectMgr.h.

◆ PlayerCreateInfoSkills

typedef std::vector<SkillRaceClassInfoEntry const*> PlayerCreateInfoSkills

Definition at line 647 of file ObjectMgr.h.

◆ PlayerCreateInfoSpells

typedef std::vector<uint32> PlayerCreateInfoSpells

Definition at line 634 of file ObjectMgr.h.

◆ PointOfInterestLocaleContainer

Definition at line 538 of file ObjectMgr.h.

◆ QuestGreetingContainer

typedef std::array<std::unordered_map<uint32, QuestGreeting>, 2> QuestGreetingContainer

Definition at line 829 of file ObjectMgr.h.

◆ QuestGreetingLocaleContainer

typedef std::array<std::unordered_map<uint32, QuestGreetingLocale>, 2> QuestGreetingLocaleContainer

Definition at line 830 of file ObjectMgr.h.

◆ QuestObjectivesLocaleContainer

Definition at line 517 of file ObjectMgr.h.

◆ QuestOfferRewardLocaleContainer

Definition at line 518 of file ObjectMgr.h.

◆ QuestPOIContainer

typedef std::unordered_map<uint32, QuestPOIData> QuestPOIContainer

Definition at line 827 of file ObjectMgr.h.

◆ QuestRelations

typedef std::multimap<uint32, uint32> QuestRelations

Definition at line 558 of file ObjectMgr.h.

◆ QuestRelationsReverse

typedef std::multimap<uint32, uint32> QuestRelationsReverse

Definition at line 559 of file ObjectMgr.h.

◆ QuestRequestItemsLocaleContainer

Definition at line 519 of file ObjectMgr.h.

◆ QuestTemplateLocaleContainer

Definition at line 516 of file ObjectMgr.h.

◆ RealmNameContainer

typedef std::unordered_map<uint32, std::string> RealmNameContainer

Definition at line 851 of file ObjectMgr.h.

◆ SceneTemplateContainer

typedef std::unordered_map<uint32, SceneTemplate> SceneTemplateContainer

Definition at line 862 of file ObjectMgr.h.

◆ ScriptMap

typedef std::multimap<uint32, ScriptInfo> ScriptMap

Definition at line 412 of file ObjectMgr.h.

◆ ScriptMapMap

typedef std::map<uint32, ScriptMap> ScriptMapMap

Definition at line 413 of file ObjectMgr.h.

◆ SpawnGroupDataContainer

Definition at line 506 of file ObjectMgr.h.

◆ SpawnGroupLinkContainer

typedef std::multimap<uint32, SpawnMetadata const*> SpawnGroupLinkContainer

Definition at line 507 of file ObjectMgr.h.

◆ SpawnTrackingLinkContainer

typedef std::multimap<uint32, SpawnMetadata const*> SpawnTrackingLinkContainer

Definition at line 510 of file ObjectMgr.h.

◆ SpawnTrackingQuestObjectiveContainer

typedef std::unordered_map<uint32 , std::vector<QuestObjective const*> > SpawnTrackingQuestObjectiveContainer

Definition at line 511 of file ObjectMgr.h.

◆ SpawnTrackingTemplateContainer

Definition at line 509 of file ObjectMgr.h.

◆ SpellClickInfoContainer

Definition at line 449 of file ObjectMgr.h.

◆ SpellScriptsBounds

typedef std::pair<SpellScriptsContainer::iterator, SpellScriptsContainer::iterator> SpellScriptsBounds

Definition at line 415 of file ObjectMgr.h.

◆ SpellScriptsContainer

typedef std::multimap<uint32 , std::pair<uint32 , bool > > SpellScriptsContainer

Definition at line 414 of file ObjectMgr.h.

◆ TempSummonDataContainer

typedef std::map<TempSummonGroupKey, std::vector<TempSummonData> > TempSummonDataContainer

Definition at line 512 of file ObjectMgr.h.

◆ TrinityStringContainer

typedef std::unordered_map<uint32, TrinityString> TrinityStringContainer

Definition at line 556 of file ObjectMgr.h.

◆ UiMapQuestLinesMap

typedef std::unordered_map<uint32, std::vector<uint32> > UiMapQuestLinesMap

Definition at line 521 of file ObjectMgr.h.

◆ UiMapQuestsMap

typedef std::unordered_map<uint32, std::vector<uint32> > UiMapQuestsMap

Definition at line 522 of file ObjectMgr.h.

◆ VehicleSeatAddonContainer

typedef std::unordered_map<uint32, VehicleSeatAddon> VehicleSeatAddonContainer

Definition at line 523 of file ObjectMgr.h.

Enumeration Type Documentation

◆ ChatType

enum ChatType
Enumerator
CHAT_TYPE_SAY 
CHAT_TYPE_YELL 
CHAT_TYPE_TEXT_EMOTE 
CHAT_TYPE_BOSS_EMOTE 
CHAT_TYPE_WHISPER 
CHAT_TYPE_BOSS_WHISPER 
CHAT_TYPE_ZONE_YELL 
CHAT_TYPE_END 

Definition at line 134 of file ObjectMgr.h.

◆ eScriptFlags

Enumerator
SF_TALK_USE_PLAYER 
SF_EMOTE_USE_STATE 
SF_TELEPORT_USE_CREATURE 
SF_KILLCREDIT_REWARD_GROUP 
SF_REMOVEAURA_REVERSE 
SF_CASTSPELL_SOURCE_TO_TARGET 
SF_CASTSPELL_SOURCE_TO_SOURCE 
SF_CASTSPELL_TARGET_TO_TARGET 
SF_CASTSPELL_TARGET_TO_SOURCE 
SF_CASTSPELL_SEARCH_CREATURE 
SF_CASTSPELL_TRIGGERED 
SF_PLAYSOUND_TARGET_PLAYER 
SF_PLAYSOUND_DISTANCE_SOUND 
SF_ORIENTATION_FACE_TARGET 

Definition at line 179 of file ObjectMgr.h.

◆ PlayerCreateMode

enum class PlayerCreateMode : int8
strong
Enumerator
Normal 
NPE 
Max 

Definition at line 611 of file ObjectMgr.h.

◆ QueryDataGroup

Enumerator
QUERY_DATA_CREATURES 
QUERY_DATA_GAMEOBJECTS 
QUERY_DATA_ITEMS 
QUERY_DATA_QUESTS 
QUERY_DATA_POIS 
QUERY_DATA_ALL 

Definition at line 948 of file ObjectMgr.h.

◆ ScriptCommands

Enumerator
SCRIPT_COMMAND_TALK 
SCRIPT_COMMAND_EMOTE 
SCRIPT_COMMAND_FIELD_SET_DEPRECATED 
SCRIPT_COMMAND_MOVE_TO 
SCRIPT_COMMAND_FLAG_SET_DEPRECATED 
SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED 
SCRIPT_COMMAND_TELEPORT_TO 
SCRIPT_COMMAND_QUEST_EXPLORED 
SCRIPT_COMMAND_KILL_CREDIT 
SCRIPT_COMMAND_RESPAWN_GAMEOBJECT 
SCRIPT_COMMAND_TEMP_SUMMON_CREATURE 
SCRIPT_COMMAND_OPEN_DOOR 
SCRIPT_COMMAND_CLOSE_DOOR 
SCRIPT_COMMAND_ACTIVATE_OBJECT 
SCRIPT_COMMAND_REMOVE_AURA 
SCRIPT_COMMAND_CAST_SPELL 
SCRIPT_COMMAND_PLAY_SOUND 
SCRIPT_COMMAND_CREATE_ITEM 
SCRIPT_COMMAND_DESPAWN_SELF 
SCRIPT_COMMAND_LOAD_PATH 
SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT 
SCRIPT_COMMAND_KILL 
SCRIPT_COMMAND_ORIENTATION 
SCRIPT_COMMAND_EQUIP 
SCRIPT_COMMAND_MODEL 
SCRIPT_COMMAND_CLOSE_GOSSIP 
SCRIPT_COMMAND_PLAYMOVIE 
SCRIPT_COMMAND_MOVEMENT 
SCRIPT_COMMAND_PLAY_ANIMKIT 

Definition at line 98 of file ObjectMgr.h.

◆ ScriptsType

Enumerator
SCRIPTS_FIRST 
SCRIPTS_EVENT 
SCRIPTS_WAYPOINT 
SCRIPTS_LAST 

Definition at line 169 of file ObjectMgr.h.

◆ SkillRangeType

Enumerator
SKILL_RANGE_LANGUAGE 
SKILL_RANGE_LEVEL 
SKILL_RANGE_MONO 
SKILL_RANGE_RANK 
SKILL_RANGE_NONE 

Definition at line 866 of file ObjectMgr.h.

◆ SummonerType

Enumerator
SUMMONER_TYPE_CREATURE 
SUMMONER_TYPE_GAMEOBJECT 
SUMMONER_TYPE_MAP 

Definition at line 71 of file ObjectMgr.h.

Function Documentation

◆ ExtractExtendedPlayerName()

ExtendedPlayerName ExtractExtendedPlayerName ( std::string const &  name)

◆ GetScriptCommandName()

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

Definition at line 97 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, and sEventScripts.

Referenced by ObjectMgr::LoadScripts(), and Map::ScriptsProcess().

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 86 of file ObjectMgr.cpp.

References SCRIPTS_EVENT.

Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().

◆ GetSkillRangeType()

◆ normalizePlayerName()

TC_GAME_API bool normalizePlayerName ( std::string &  name)

Definition at line 157 of file ObjectMgr.cpp.

References Utf8toWStr(), wcharToUpper, wstrToLower(), and WStrToUtf8().

Referenced by ChatHandler::extractLowGuidFromLink(), ChatHandler::extractPlayerNameFromLink(), PlayerNameMapHolder::Find(), character_commandscript::GetDeletedCharacterInfoList(), ChatHandler::GetPlayerGroupAndGUIDByName(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleAddIgnoreOpcode(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), ban_commandscript::HandleBanInfoCharacterCommand(), WorldSession::HandleCalendarInvite(), WorldSession::HandleChannelPlayerCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharRaceOrFactionChangeCallback(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), WorldSession::HandleCheckCharacterNameAvailability(), misc_commandscript::HandleFreezeCommand(), WorldSession::HandleGuildInviteByName(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), ticket_commandscript::HandleTicketAssignToCommand(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), misc_commandscript::HandleUnFreezeCommand(), message_commandscript::HandleWhispersCommand(), WorldSession::HandleWhoIsOpcode(), PlayerDumpReader::LoadDump(), Trinity::ChatCommands::PlayerIdentifier::TryConsume(), and character_commandscript::ValidatePDumpTarget().

Variable Documentation

◆ sEventScripts

TC_GAME_API ScriptMapMap sEventScripts
extern