TrinityCore
Loading...
Searching...
No Matches
ObjectMgr.h File Reference
#include "Common.h"
#include "ConditionMgr.h"
#include "CreatureData.h"
#include "DatabaseEnvFwd.h"
#include "Errors.h"
#include "GameObjectData.h"
#include "ItemTemplate.h"
#include "IteratorPair.h"
#include "NPCHandler.h"
#include "ObjectDefines.h"
#include "ObjectGuid.h"
#include "Position.h"
#include "QuestDef.h"
#include "SharedDefines.h"
#include "Trainer.h"
#include "VehicleDefines.h"
#include "UniqueTrackablePtr.h"
#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  AreaTriggerTeleport
 
struct  AccessRequirement
 
struct  BroadcastTextEntry
 
struct  CellObjectGuids
 
struct  TrinityString
 
struct  QuestGreetingLocale
 
struct  GossipMenuItemsLocale
 
struct  PointOfInterestLocale
 
struct  QuestRelationResult
 
struct  QuestRelationResult::Iterator
 
struct  PlayerCreateInfoItem
 
struct  PlayerClassLevelInfo
 
struct  PlayerClassInfo
 
struct  PlayerLevelInfo
 
struct  PlayerCreateInfoAction
 
struct  PlayerCreateInfoSkill
 
struct  PlayerInfo
 
struct  PetLevelInfo
 
struct  MailLevelReward
 
struct  RepRewardRate
 
struct  ReputationOnKillEntry
 
struct  RepSpilloverTemplate
 
struct  PointOfInterest
 
struct  GossipMenuItems
 
struct  GossipMenus
 
struct  QuestPOIBlobPoint
 
struct  QuestPOIBlobData
 
struct  QuestPOIData
 
struct  QuestPOIWrapper
 
struct  QuestGreeting
 
struct  GraveyardData
 
struct  LanguageDesc
 
struct  DungeonEncounter
 
class  ObjectMgr
 

Macros

#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
 
typedef std::unordered_map< uint32, BroadcastTextEntry > BroadcastTextContainer
 
typedef std::set< ObjectGuid::LowType > CellGuidSet
 
typedef std::unordered_map< uint32, CellObjectGuids > CellObjectGuidsMap
 
typedef std::unordered_map< uint32, CellObjectGuidsMap > MapObjectGuids
 
typedef std::map< ObjectGuid, ObjectGuid > LinkedRespawnContainer
 
typedef std::unordered_map< uint32, CreatureTemplate > CreatureTemplateContainer
 
typedef std::unordered_map< uint32, CreatureAddon > CreatureTemplateAddonContainer
 
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< uint32, std::vector< uint32 > > CreatureQuestItemMap
 
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::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, ItemLocale > ItemLocaleContainer
 
typedef std::unordered_map< uint32, ItemSetNameLocale > ItemSetNameLocaleContainer
 
typedef std::unordered_map< uint32, QuestLocale > QuestLocaleContainer
 
typedef std::unordered_map< uint32, QuestOfferRewardLocale > QuestOfferRewardLocaleContainer
 
typedef std::unordered_map< uint32, QuestRequestItemsLocale > QuestRequestItemsLocaleContainer
 
typedef std::unordered_map< uint32, NpcTextLocale > NpcTextLocaleContainer
 
typedef std::unordered_map< uint32, PageTextLocale > PageTextLocaleContainer
 
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, QuestGreetingLocale > QuestGreetingLocaleContainer
 
typedef std::unordered_map< uint32, TrinityString > TrinityStringContainer
 
typedef std::multimap< uint32, uint32 > QuestRelations
 
typedef std::vector< PlayerCreateInfoItem > PlayerCreateInfoItems
 
typedef std::vector< uint32 > PlayerCreateInfoSpells
 
typedef std::vector< PlayerCreateInfoAction > PlayerCreateInfoActions
 
typedef std::vector< PlayerCreateInfoSkill > PlayerCreateInfoSkills
 
typedef std::multimap< int32, uint32 > ExclusiveQuestGroups
 
typedef std::pair< ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator > ExclusiveQuestGroupsBounds
 
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::pair< GossipMenuItemsContainer::const_iterator, GossipMenuItemsContainer::const_iterator > GossipMenuItemsMapBounds
 
typedef std::pair< GossipMenuItemsContainer::iterator, GossipMenuItemsContainer::iterator > GossipMenuItemsMapBoundsNonConst
 
typedef std::unordered_map< uint32, QuestPOIWrapper > QuestPOIContainer
 
typedef std::unordered_map< uint8, std::unordered_map< uint32, QuestGreeting > > QuestGreetingContainer
 
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::vector< std::unique_ptr< DungeonEncounter const > > DungeonEncounterList
 
typedef std::unordered_map< uint32, DungeonEncounterList > DungeonEncounterContainer
 
typedef std::map< std::pair< SummonSlot, Races >, uint32 > PlayerTotemModelMap
 

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 = 2 , SCRIPT_COMMAND_MOVE_TO = 3 ,
  SCRIPT_COMMAND_FLAG_SET = 4 , SCRIPT_COMMAND_FLAG_REMOVE = 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  SkillRangeType {
  SKILL_RANGE_LANGUAGE , SKILL_RANGE_LEVEL , SKILL_RANGE_MONO , SKILL_RANGE_RANK ,
  SKILL_RANGE_NONE
}
 
enum  EncounterCreditType : uint8 { ENCOUNTER_CREDIT_KILL_CREATURE = 0 , ENCOUNTER_CREDIT_CAST_SPELL = 1 }
 
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)
 
LanguageDesc const * GetLanguageDescByID (uint32 lang)
 

Variables

TC_GAME_API ScriptMapMap sEventScripts
 
TC_GAME_API ScriptMapMap sWaypointScripts
 
TC_GAME_API LanguageDesc lang_description [LANGUAGES_COUNT]
 

Macro Definition Documentation

◆ MAX_CHARTER_NAME

#define MAX_CHARTER_NAME   24

Definition at line 873 of file ObjectMgr.h.

◆ MAX_INTERNAL_PLAYER_NAME

#define MAX_INTERNAL_PLAYER_NAME   15

Definition at line 871 of file ObjectMgr.h.

◆ MAX_PET_NAME

#define MAX_PET_NAME   12

Definition at line 872 of file ObjectMgr.h.

◆ MAX_PLAYER_NAME

#define MAX_PLAYER_NAME   12

Definition at line 870 of file ObjectMgr.h.

◆ sObjectMgr

#define sObjectMgr   ObjectMgr::instance()

Definition at line 1721 of file ObjectMgr.h.

◆ SPAWNGROUP_MAP_UNSET

#define SPAWNGROUP_MAP_UNSET   0xFFFFFFFF

Definition at line 876 of file ObjectMgr.h.

Typedef Documentation

◆ BroadcastTextContainer

typedef std::unordered_map<uint32, BroadcastTextEntry> BroadcastTextContainer

Definition at line 507 of file ObjectMgr.h.

◆ CacheVendorItemContainer

typedef std::unordered_map<uint32, VendorItemData> CacheVendorItemContainer

Definition at line 857 of file ObjectMgr.h.

◆ CellGuidSet

typedef std::set<ObjectGuid::LowType> CellGuidSet

Definition at line 509 of file ObjectMgr.h.

◆ CellObjectGuidsMap

typedef std::unordered_map<uint32, CellObjectGuids> CellObjectGuidsMap

Definition at line 515 of file ObjectMgr.h.

◆ CreatureAddonContainer

Definition at line 532 of file ObjectMgr.h.

◆ CreatureBaseStatsContainer

typedef std::unordered_map<uint16, CreatureBaseStats> CreatureBaseStatsContainer

Definition at line 533 of file ObjectMgr.h.

◆ CreatureDataContainer

Definition at line 531 of file ObjectMgr.h.

◆ CreatureLocaleContainer

typedef std::unordered_map<uint32, CreatureLocale> CreatureLocaleContainer

Definition at line 548 of file ObjectMgr.h.

◆ CreatureModelContainer

typedef std::unordered_map<uint32, CreatureModelInfo> CreatureModelContainer

Definition at line 536 of file ObjectMgr.h.

◆ CreatureQuestItemMap

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

Definition at line 537 of file ObjectMgr.h.

◆ CreatureTemplateAddonContainer

typedef std::unordered_map<uint32, CreatureAddon> CreatureTemplateAddonContainer

Definition at line 530 of file ObjectMgr.h.

◆ CreatureTemplateContainer

typedef std::unordered_map<uint32, CreatureTemplate> CreatureTemplateContainer

Definition at line 529 of file ObjectMgr.h.

◆ DungeonEncounterContainer

Definition at line 906 of file ObjectMgr.h.

◆ DungeonEncounterList

typedef std::vector<std::unique_ptr<DungeonEncounter const> > DungeonEncounterList

Definition at line 905 of file ObjectMgr.h.

◆ EquipmentInfoContainer

Definition at line 535 of file ObjectMgr.h.

◆ EquipmentInfoContainerInternal

typedef std::unordered_map<uint8, EquipmentInfo> EquipmentInfoContainerInternal

Definition at line 534 of file ObjectMgr.h.

◆ ExclusiveQuestGroups

typedef std::multimap<int32, uint32> ExclusiveQuestGroups

Definition at line 696 of file ObjectMgr.h.

◆ ExclusiveQuestGroupsBounds

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

Definition at line 697 of file ObjectMgr.h.

◆ GameObjectAddonContainer

Definition at line 542 of file ObjectMgr.h.

◆ GameObjectDataContainer

Definition at line 541 of file ObjectMgr.h.

◆ GameObjectLocaleContainer

typedef std::unordered_map<uint32, GameObjectLocale> GameObjectLocaleContainer

Definition at line 549 of file ObjectMgr.h.

◆ GameObjectOverrideContainer

Definition at line 540 of file ObjectMgr.h.

◆ GameObjectQuestItemMap

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

Definition at line 543 of file ObjectMgr.h.

◆ GameObjectTemplateAddonContainer

Definition at line 539 of file ObjectMgr.h.

◆ GameObjectTemplateContainer

Definition at line 538 of file ObjectMgr.h.

◆ GameTeleContainer

typedef std::unordered_map<uint32, GameTele> GameTeleContainer

Definition at line 170 of file ObjectMgr.h.

◆ GossipMenuItemsContainer

Definition at line 793 of file ObjectMgr.h.

◆ GossipMenuItemsLocaleContainer

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

Definition at line 566 of file ObjectMgr.h.

◆ GossipMenuItemsMapBounds

typedef std::pair<GossipMenuItemsContainer::const_iterator, GossipMenuItemsContainer::const_iterator> GossipMenuItemsMapBounds

Definition at line 794 of file ObjectMgr.h.

◆ GossipMenuItemsMapBoundsNonConst

typedef std::pair<GossipMenuItemsContainer::iterator, GossipMenuItemsContainer::iterator> GossipMenuItemsMapBoundsNonConst

Definition at line 795 of file ObjectMgr.h.

◆ GossipMenusContainer

typedef std::multimap<uint32, GossipMenus> GossipMenusContainer

Definition at line 790 of file ObjectMgr.h.

◆ GossipMenusMapBounds

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

Definition at line 791 of file ObjectMgr.h.

◆ GossipMenusMapBoundsNonConst

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

Definition at line 792 of file ObjectMgr.h.

◆ GraveyardContainer

typedef std::multimap<uint32, GraveyardData> GraveyardContainer

Definition at line 853 of file ObjectMgr.h.

◆ GraveyardMapBounds

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

Definition at line 854 of file ObjectMgr.h.

◆ GraveyardMapBoundsNonConst

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

Definition at line 855 of file ObjectMgr.h.

◆ InstanceSpawnGroupContainer

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

Definition at line 546 of file ObjectMgr.h.

◆ InstanceTemplateContainer

typedef std::unordered_map<uint16, InstanceTemplate> InstanceTemplateContainer

Definition at line 157 of file ObjectMgr.h.

◆ ItemLocaleContainer

typedef std::unordered_map<uint32, ItemLocale> ItemLocaleContainer

Definition at line 551 of file ObjectMgr.h.

◆ ItemSetNameLocaleContainer

typedef std::unordered_map<uint32, ItemSetNameLocale> ItemSetNameLocaleContainer

Definition at line 552 of file ObjectMgr.h.

◆ ItemTemplateContainer

typedef std::unordered_map<uint32, ItemTemplate> ItemTemplateContainer

Definition at line 550 of file ObjectMgr.h.

◆ LinkedRespawnContainer

Definition at line 528 of file ObjectMgr.h.

◆ MailLevelRewardContainer

typedef std::unordered_map<uint8, MailLevelRewardList> MailLevelRewardContainer

Definition at line 720 of file ObjectMgr.h.

◆ MailLevelRewardList

Definition at line 719 of file ObjectMgr.h.

◆ MapObjectGuids

typedef std::unordered_map<uint32, CellObjectGuidsMap> MapObjectGuids

Definition at line 516 of file ObjectMgr.h.

◆ NpcTextLocaleContainer

typedef std::unordered_map<uint32, NpcTextLocale> NpcTextLocaleContainer

Definition at line 556 of file ObjectMgr.h.

◆ PageTextContainer

typedef std::map<uint32, PageText> PageTextContainer

Definition at line 148 of file ObjectMgr.h.

◆ PageTextLocaleContainer

typedef std::unordered_map<uint32, PageTextLocale> PageTextLocaleContainer

Definition at line 557 of file ObjectMgr.h.

◆ PlayerCreateInfoActions

Definition at line 665 of file ObjectMgr.h.

◆ PlayerCreateInfoItems

Definition at line 635 of file ObjectMgr.h.

◆ PlayerCreateInfoSkills

Definition at line 673 of file ObjectMgr.h.

◆ PlayerCreateInfoSpells

typedef std::vector<uint32> PlayerCreateInfoSpells

Definition at line 654 of file ObjectMgr.h.

◆ PlayerTotemModelMap

typedef std::map<std::pair<SummonSlot , Races >, uint32 > PlayerTotemModelMap

Definition at line 908 of file ObjectMgr.h.

◆ PointOfInterestLocaleContainer

Definition at line 573 of file ObjectMgr.h.

◆ QuestGreetingContainer

typedef std::unordered_map<uint8, std::unordered_map<uint32, QuestGreeting> > QuestGreetingContainer

Definition at line 845 of file ObjectMgr.h.

◆ QuestGreetingLocaleContainer

Definition at line 574 of file ObjectMgr.h.

◆ QuestLocaleContainer

typedef std::unordered_map<uint32, QuestLocale> QuestLocaleContainer

Definition at line 553 of file ObjectMgr.h.

◆ QuestOfferRewardLocaleContainer

Definition at line 554 of file ObjectMgr.h.

◆ QuestPOIContainer

typedef std::unordered_map<uint32, QuestPOIWrapper> QuestPOIContainer

Definition at line 832 of file ObjectMgr.h.

◆ QuestRelations

typedef std::multimap<uint32, uint32> QuestRelations

Definition at line 578 of file ObjectMgr.h.

◆ QuestRequestItemsLocaleContainer

Definition at line 555 of file ObjectMgr.h.

◆ ScriptMap

typedef std::multimap<uint32, ScriptInfo> ScriptMap

Definition at line 410 of file ObjectMgr.h.

◆ ScriptMapMap

typedef std::map<uint32, ScriptMap> ScriptMapMap

Definition at line 411 of file ObjectMgr.h.

◆ SpawnGroupDataContainer

Definition at line 544 of file ObjectMgr.h.

◆ SpawnGroupLinkContainer

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

Definition at line 545 of file ObjectMgr.h.

◆ SpellClickInfoContainer

Definition at line 448 of file ObjectMgr.h.

◆ SpellScriptsBounds

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

Definition at line 413 of file ObjectMgr.h.

◆ SpellScriptsContainer

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

Definition at line 412 of file ObjectMgr.h.

◆ TempSummonDataContainer

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

Definition at line 547 of file ObjectMgr.h.

◆ TrinityStringContainer

typedef std::unordered_map<uint32, TrinityString> TrinityStringContainer

Definition at line 576 of file ObjectMgr.h.

◆ VehicleSeatAddonContainer

typedef std::unordered_map<uint32, VehicleSeatAddon> VehicleSeatAddonContainer

Definition at line 558 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 136 of file ObjectMgr.h.

◆ EncounterCreditType

Enumerator
ENCOUNTER_CREDIT_KILL_CREATURE 
ENCOUNTER_CREDIT_CAST_SPELL 

Definition at line 888 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 182 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 910 of file ObjectMgr.h.

◆ ScriptCommands

Enumerator
SCRIPT_COMMAND_TALK 
SCRIPT_COMMAND_EMOTE 
SCRIPT_COMMAND_FIELD_SET 
SCRIPT_COMMAND_MOVE_TO 
SCRIPT_COMMAND_FLAG_SET 
SCRIPT_COMMAND_FLAG_REMOVE 
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 100 of file ObjectMgr.h.

◆ ScriptsType

Enumerator
SCRIPTS_FIRST 
SCRIPTS_EVENT 
SCRIPTS_WAYPOINT 
SCRIPTS_LAST 

Definition at line 172 of file ObjectMgr.h.

◆ SkillRangeType

Enumerator
SKILL_RANGE_LANGUAGE 
SKILL_RANGE_LEVEL 
SKILL_RANGE_MONO 
SKILL_RANGE_RANK 
SKILL_RANGE_NONE 

Definition at line 859 of file ObjectMgr.h.

◆ SummonerType

Enumerator
SUMMONER_TYPE_CREATURE 
SUMMONER_TYPE_GAMEOBJECT 
SUMMONER_TYPE_MAP 

Definition at line 64 of file ObjectMgr.h.

Function Documentation

◆ GetLanguageDescByID()

LanguageDesc const * GetLanguageDescByID ( uint32  lang)

◆ GetScriptCommandName()

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 63 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, and SCRIPTS_WAYPOINT.

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

◆ GetSkillRangeType()

◆ normalizePlayerName()

TC_GAME_API bool normalizePlayerName ( std::string &  name)

Definition at line 135 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(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), ban_commandscript::HandleBanInfoCharacterCommand(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleChannelPlayerCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharRaceOrFactionChangeCallback(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleChatMessage(), misc_commandscript::HandleFreezeCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupUninviteOpcode(), WorldSession::HandleGuildDemoteOpcode(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildOfficerRemoveMember(), WorldSession::HandleGuildPromoteOpcode(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleGuildSetOfficerNoteOpcode(), WorldSession::HandleGuildSetPublicNoteOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), 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

◆ lang_description

◆ sEventScripts

◆ sWaypointScripts