TrinityCore
Loading...
Searching...
No Matches
ObjectMgr.h File Reference
#include "Common.h"
#include "ConditionMgr.h"
#include "CreatureData.h"
#include "DatabaseEnvFwd.h"
#include "GameObjectData.h"
#include "ItemTemplate.h"
#include "IteratorPair.h"
#include "MovementDefines.h"
#include "NPCHandler.h"
#include "ObjectDefines.h"
#include "ObjectGuid.h"
#include "Position.h"
#include "QuestDef.h"
#include "RaceMask.h"
#include "SceneDefines.h"
#include "SharedDefines.h"
#include "Trainer.h"
#include "VehicleDefines.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  AreaTriggerStruct
 
struct  AccessRequirement
 
struct  CellObjectGuids
 
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  PlayerChoiceResponseRewardItem
 
struct  PlayerChoiceResponseRewardEntry
 
struct  PlayerChoiceResponseReward
 
struct  PlayerChoiceResponseMawPower
 
struct  PlayerChoiceResponse
 
struct  PlayerChoice
 
struct  SkillTiersEntry
 
struct  ExtendedPlayerName
 
struct  TerrainSwapInfo
 
struct  PhaseInfoStruct
 
struct  PhaseAreaInfo
 
struct  ClassAvailability
 
struct  RaceClassAvailability
 
struct  RaceUnlockRequirement
 
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, PageTextPageTextContainer
 
typedef std::unordered_map< uint16, InstanceTemplateInstanceTemplateContainer
 
typedef std::unordered_map< uint32, GameTeleGameTeleContainer
 
typedef std::multimap< uint32, ScriptInfoScriptMap
 
typedef std::map< uint32, ScriptMapScriptMapMap
 
typedef std::multimap< uint32, std::pair< uint32, bool > > SpellScriptsContainer
 
typedef std::pair< SpellScriptsContainer::iterator, SpellScriptsContainer::iterator > SpellScriptsBounds
 
typedef std::multimap< uint32, SpellClickInfoSpellClickInfoContainer
 
typedef std::set< ObjectGuid::LowTypeCellGuidSet
 
typedef std::unordered_map< uint32, CellObjectGuidsCellObjectGuidsMap
 
typedef std::unordered_map< std::pair< uint32, Difficulty >, CellObjectGuidsMapMapObjectGuids
 
typedef std::map< std::tuple< uint32, Difficulty, uint32 >, CellObjectGuidsMapMapPersonalObjectGuids
 
typedef std::map< ObjectGuid, ObjectGuidLinkedRespawnContainer
 
typedef std::unordered_map< uint32, CreatureTemplateCreatureTemplateContainer
 
typedef std::unordered_map< uint32, CreatureAddonCreatureTemplateAddonContainer
 
typedef std::unordered_map< uint32, std::vector< float > > CreatureTemplateSparringContainer
 
typedef std::unordered_map< ObjectGuid::LowType, CreatureDataCreatureDataContainer
 
typedef std::unordered_map< ObjectGuid::LowType, CreatureAddonCreatureAddonContainer
 
typedef std::unordered_map< uint16, CreatureBaseStatsCreatureBaseStatsContainer
 
typedef std::unordered_map< uint8, EquipmentInfoEquipmentInfoContainerInternal
 
typedef std::unordered_map< uint32, EquipmentInfoContainerInternalEquipmentInfoContainer
 
typedef std::unordered_map< uint32, CreatureModelInfoCreatureModelContainer
 
typedef std::unordered_map< std::pair< uint32, Difficulty >, std::vector< uint32 > > CreatureQuestItemMap
 
typedef std::unordered_map< uint32, GameObjectTemplateGameObjectTemplateContainer
 
typedef std::unordered_map< uint32, GameObjectTemplateAddonGameObjectTemplateAddonContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectOverrideGameObjectOverrideContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectDataGameObjectDataContainer
 
typedef std::unordered_map< ObjectGuid::LowType, GameObjectAddonGameObjectAddonContainer
 
typedef std::unordered_map< uint32, std::vector< uint32 > > GameObjectQuestItemMap
 
typedef std::unordered_map< uint32, SpawnGroupTemplateDataSpawnGroupDataContainer
 
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, CreatureLocaleCreatureLocaleContainer
 
typedef std::unordered_map< uint32, GameObjectLocaleGameObjectLocaleContainer
 
typedef std::unordered_map< uint32, ItemTemplateItemTemplateContainer
 
typedef std::unordered_map< uint32, QuestTemplateLocaleQuestTemplateLocaleContainer
 
typedef std::unordered_map< uint32, QuestObjectivesLocaleQuestObjectivesLocaleContainer
 
typedef std::unordered_map< uint32, QuestOfferRewardLocaleQuestOfferRewardLocaleContainer
 
typedef std::unordered_map< uint32, QuestRequestItemsLocaleQuestRequestItemsLocaleContainer
 
typedef std::unordered_map< uint32, PageTextLocalePageTextLocaleContainer
 
typedef std::unordered_map< uint32, VehicleSeatAddonVehicleSeatAddonContainer
 
typedef std::unordered_map< std::pair< uint32, uint32 >, GossipMenuItemsLocaleGossipMenuItemsLocaleContainer
 
typedef std::unordered_map< uint32, PointOfInterestLocalePointOfInterestLocaleContainer
 
typedef std::unordered_map< uint32, TrinityStringTrinityStringContainer
 
typedef std::multimap< uint32, uint32QuestRelations
 
typedef std::multimap< uint32, uint32QuestRelationsReverse
 
typedef std::multimap< int32, uint32ExclusiveQuestGroups
 
typedef std::pair< ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator > ExclusiveQuestGroupsBounds
 
typedef std::vector< PlayerCreateInfoItemPlayerCreateInfoItems
 
typedef std::vector< uint32PlayerCreateInfoSpells
 
typedef std::vector< PlayerCreateInfoActionPlayerCreateInfoActions
 
typedef std::vector< SkillRaceClassInfoEntry const * > PlayerCreateInfoSkills
 
typedef std::list< MailLevelRewardMailLevelRewardList
 
typedef std::unordered_map< uint8, MailLevelRewardListMailLevelRewardContainer
 
typedef std::multimap< uint32, GossipMenusGossipMenusContainer
 
typedef std::pair< GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator > GossipMenusMapBounds
 
typedef std::pair< GossipMenusContainer::iterator, GossipMenusContainer::iterator > GossipMenusMapBoundsNonConst
 
typedef std::multimap< uint32, GossipMenuItemsGossipMenuItemsContainer
 
typedef std::unordered_map< uint32, GossipMenuAddonGossipMenuAddonContainer
 
typedef std::unordered_map< uint32, QuestPOIDataQuestPOIContainer
 
typedef std::array< std::unordered_map< uint32, QuestGreeting >, 2 > QuestGreetingContainer
 
typedef std::array< std::unordered_map< uint32, QuestGreetingLocale >, 2 > QuestGreetingLocaleContainer
 
typedef std::multimap< uint32, GraveyardDataGraveyardContainer
 
typedef std::pair< GraveyardContainer::const_iterator, GraveyardContainer::const_iterator > GraveyardMapBounds
 
typedef std::pair< GraveyardContainer::iterator, GraveyardContainer::iterator > GraveyardMapBoundsNonConst
 
typedef std::unordered_map< uint32, VendorItemDataCacheVendorItemContainer
 
typedef std::unordered_map< uint32, std::string > RealmNameContainer
 
typedef std::unordered_map< uint32, SceneTemplateSceneTemplateContainer
 
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_SPELL = SCRIPTS_FIRST , SCRIPTS_EVENT , 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)
 
ScriptMapMapGetScriptsMapByType (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 sSpellScripts
 
TC_GAME_API ScriptMapMap sEventScripts
 
TC_GAME_API ScriptMapMap sWaypointScripts
 

Macro Definition Documentation

◆ MAX_CHARTER_NAME

#define MAX_CHARTER_NAME   24

Definition at line 980 of file ObjectMgr.h.

◆ MAX_INTERNAL_PLAYER_NAME

#define MAX_INTERNAL_PLAYER_NAME   15

Definition at line 978 of file ObjectMgr.h.

◆ MAX_PET_NAME

#define MAX_PET_NAME   12

Definition at line 979 of file ObjectMgr.h.

◆ MAX_PLAYER_NAME

#define MAX_PLAYER_NAME   12

Definition at line 977 of file ObjectMgr.h.

◆ MAX_SKILL_STEP

#define MAX_SKILL_STEP   16

Definition at line 967 of file ObjectMgr.h.

◆ sObjectMgr

#define sObjectMgr   ObjectMgr::instance()

Definition at line 1946 of file ObjectMgr.h.

◆ SPAWNGROUP_MAP_UNSET

#define SPAWNGROUP_MAP_UNSET   0xFFFFFFFF

Definition at line 983 of file ObjectMgr.h.

Typedef Documentation

◆ CacheVendorItemContainer

typedef std::unordered_map<uint32, VendorItemData> CacheVendorItemContainer

Definition at line 847 of file ObjectMgr.h.

◆ CellGuidSet

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

Definition at line 479 of file ObjectMgr.h.

◆ CellObjectGuidsMap

typedef std::unordered_map<uint32, CellObjectGuids> CellObjectGuidsMap

Definition at line 485 of file ObjectMgr.h.

◆ CreatureAddonContainer

Definition at line 499 of file ObjectMgr.h.

◆ CreatureBaseStatsContainer

typedef std::unordered_map<uint16, CreatureBaseStats> CreatureBaseStatsContainer

Definition at line 500 of file ObjectMgr.h.

◆ CreatureDataContainer

Definition at line 498 of file ObjectMgr.h.

◆ CreatureLocaleContainer

typedef std::unordered_map<uint32, CreatureLocale> CreatureLocaleContainer

Definition at line 515 of file ObjectMgr.h.

◆ CreatureModelContainer

typedef std::unordered_map<uint32, CreatureModelInfo> CreatureModelContainer

Definition at line 503 of file ObjectMgr.h.

◆ CreatureQuestItemMap

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

Definition at line 504 of file ObjectMgr.h.

◆ CreatureTemplateAddonContainer

typedef std::unordered_map<uint32, CreatureAddon> CreatureTemplateAddonContainer

Definition at line 496 of file ObjectMgr.h.

◆ CreatureTemplateContainer

typedef std::unordered_map<uint32, CreatureTemplate> CreatureTemplateContainer

Definition at line 495 of file ObjectMgr.h.

◆ CreatureTemplateSparringContainer

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

Definition at line 497 of file ObjectMgr.h.

◆ EquipmentInfoContainer

Definition at line 502 of file ObjectMgr.h.

◆ EquipmentInfoContainerInternal

typedef std::unordered_map<uint8, EquipmentInfo> EquipmentInfoContainerInternal

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

◆ GameObjectDataContainer

Definition at line 508 of file ObjectMgr.h.

◆ GameObjectLocaleContainer

typedef std::unordered_map<uint32, GameObjectLocale> GameObjectLocaleContainer

Definition at line 516 of file ObjectMgr.h.

◆ GameObjectOverrideContainer

Definition at line 507 of file ObjectMgr.h.

◆ GameObjectQuestItemMap

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

Definition at line 510 of file ObjectMgr.h.

◆ GameObjectTemplateAddonContainer

Definition at line 506 of file ObjectMgr.h.

◆ GameObjectTemplateContainer

Definition at line 505 of file ObjectMgr.h.

◆ GameTeleContainer

typedef std::unordered_map<uint32, GameTele> GameTeleContainer

Definition at line 171 of file ObjectMgr.h.

◆ GossipMenuAddonContainer

typedef std::unordered_map<uint32, GossipMenuAddon> GossipMenuAddonContainer

Definition at line 778 of file ObjectMgr.h.

◆ GossipMenuItemsContainer

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

◆ GossipMenusMapBounds

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

Definition at line 775 of file ObjectMgr.h.

◆ GossipMenusMapBoundsNonConst

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

Definition at line 776 of file ObjectMgr.h.

◆ GraveyardContainer

typedef std::multimap<uint32, GraveyardData> GraveyardContainer

Definition at line 843 of file ObjectMgr.h.

◆ GraveyardMapBounds

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

Definition at line 844 of file ObjectMgr.h.

◆ GraveyardMapBoundsNonConst

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

Definition at line 845 of file ObjectMgr.h.

◆ InstanceSpawnGroupContainer

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

Definition at line 513 of file ObjectMgr.h.

◆ InstanceTemplateContainer

typedef std::unordered_map<uint16, InstanceTemplate> InstanceTemplateContainer

Definition at line 158 of file ObjectMgr.h.

◆ ItemTemplateContainer

typedef std::unordered_map<uint32, ItemTemplate> ItemTemplateContainer

Definition at line 517 of file ObjectMgr.h.

◆ LinkedRespawnContainer

Definition at line 494 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>, CellObjectGuidsMap> MapObjectGuids

Definition at line 486 of file ObjectMgr.h.

◆ MapPersonalObjectGuids

Definition at line 487 of file ObjectMgr.h.

◆ PageTextContainer

typedef std::map<uint32, PageText> PageTextContainer

Definition at line 150 of file ObjectMgr.h.

◆ PageTextLocaleContainer

typedef std::unordered_map<uint32, PageTextLocale> PageTextLocaleContainer

Definition at line 522 of file ObjectMgr.h.

◆ PhaseNameContainer

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

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

◆ QuestGreetingLocaleContainer

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

Definition at line 829 of file ObjectMgr.h.

◆ QuestObjectivesLocaleContainer

Definition at line 519 of file ObjectMgr.h.

◆ QuestOfferRewardLocaleContainer

Definition at line 520 of file ObjectMgr.h.

◆ QuestPOIContainer

typedef std::unordered_map<uint32, QuestPOIData> QuestPOIContainer

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

◆ QuestTemplateLocaleContainer

Definition at line 518 of file ObjectMgr.h.

◆ RealmNameContainer

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

Definition at line 849 of file ObjectMgr.h.

◆ SceneTemplateContainer

typedef std::unordered_map<uint32, SceneTemplate> SceneTemplateContainer

Definition at line 860 of file ObjectMgr.h.

◆ ScriptMap

typedef std::multimap<uint32, ScriptInfo> ScriptMap

Definition at line 417 of file ObjectMgr.h.

◆ ScriptMapMap

typedef std::map<uint32, ScriptMap> ScriptMapMap

Definition at line 418 of file ObjectMgr.h.

◆ SpawnGroupDataContainer

Definition at line 511 of file ObjectMgr.h.

◆ SpawnGroupLinkContainer

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

Definition at line 512 of file ObjectMgr.h.

◆ SpellClickInfoContainer

Definition at line 456 of file ObjectMgr.h.

◆ SpellScriptsBounds

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

Definition at line 420 of file ObjectMgr.h.

◆ SpellScriptsContainer

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

Definition at line 419 of file ObjectMgr.h.

◆ TempSummonDataContainer

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

Definition at line 514 of file ObjectMgr.h.

◆ TrinityStringContainer

typedef std::unordered_map<uint32, TrinityString> TrinityStringContainer

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

139{
140 CHAT_TYPE_SAY = 0,
141 CHAT_TYPE_YELL = 1,
147 CHAT_TYPE_END = 255
148};
@ CHAT_TYPE_SAY
Definition: ObjectMgr.h:140
@ CHAT_TYPE_BOSS_WHISPER
Definition: ObjectMgr.h:145
@ CHAT_TYPE_TEXT_EMOTE
Definition: ObjectMgr.h:142
@ CHAT_TYPE_BOSS_EMOTE
Definition: ObjectMgr.h:143
@ CHAT_TYPE_END
Definition: ObjectMgr.h:147
@ CHAT_TYPE_ZONE_YELL
Definition: ObjectMgr.h:146
@ CHAT_TYPE_WHISPER
Definition: ObjectMgr.h:144
@ CHAT_TYPE_YELL
Definition: ObjectMgr.h:141

◆ 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 184 of file ObjectMgr.h.

185{
186 // Talk Flags
187 SF_TALK_USE_PLAYER = 0x1,
188
189 // Emote flags
190 SF_EMOTE_USE_STATE = 0x1,
191
192 // TeleportTo flags
194
195 // KillCredit flags
197
198 // RemoveAura flags
200
201 // CastSpell flags
208
209 // PlaySound flags
212
213 // Orientation flags
215};
@ SF_CASTSPELL_SOURCE_TO_SOURCE
Definition: ObjectMgr.h:203
@ SF_CASTSPELL_SOURCE_TO_TARGET
Definition: ObjectMgr.h:202
@ SF_CASTSPELL_TRIGGERED
Definition: ObjectMgr.h:207
@ SF_CASTSPELL_TARGET_TO_SOURCE
Definition: ObjectMgr.h:205
@ SF_REMOVEAURA_REVERSE
Definition: ObjectMgr.h:199
@ SF_PLAYSOUND_DISTANCE_SOUND
Definition: ObjectMgr.h:211
@ SF_TALK_USE_PLAYER
Definition: ObjectMgr.h:187
@ SF_TELEPORT_USE_CREATURE
Definition: ObjectMgr.h:193
@ SF_KILLCREDIT_REWARD_GROUP
Definition: ObjectMgr.h:196
@ SF_PLAYSOUND_TARGET_PLAYER
Definition: ObjectMgr.h:210
@ SF_CASTSPELL_TARGET_TO_TARGET
Definition: ObjectMgr.h:204
@ SF_EMOTE_USE_STATE
Definition: ObjectMgr.h:190
@ SF_CASTSPELL_SEARCH_CREATURE
Definition: ObjectMgr.h:206
@ SF_ORIENTATION_FACE_TARGET
Definition: ObjectMgr.h:214

◆ PlayerCreateMode

enum class PlayerCreateMode : int8
strong
Enumerator
Normal 
NPE 
Max 

Definition at line 611 of file ObjectMgr.h.

612{
613 Normal = 0,
614 NPE = 1,
615
616 Max
617};

◆ QueryDataGroup

Enumerator
QUERY_DATA_CREATURES 
QUERY_DATA_GAMEOBJECTS 
QUERY_DATA_ITEMS 
QUERY_DATA_QUESTS 
QUERY_DATA_POIS 
QUERY_DATA_ALL 

Definition at line 1037 of file ObjectMgr.h.

1038{
1039 QUERY_DATA_CREATURES = 0x01,
1041 QUERY_DATA_ITEMS = 0x04,
1042 QUERY_DATA_QUESTS = 0x08,
1043 QUERY_DATA_POIS = 0x10,
1044
1045 QUERY_DATA_ALL = 0xFF
1046};
@ QUERY_DATA_CREATURES
Definition: ObjectMgr.h:1039
@ QUERY_DATA_QUESTS
Definition: ObjectMgr.h:1042
@ QUERY_DATA_GAMEOBJECTS
Definition: ObjectMgr.h:1040
@ QUERY_DATA_ITEMS
Definition: ObjectMgr.h:1041
@ QUERY_DATA_ALL
Definition: ObjectMgr.h:1045
@ QUERY_DATA_POIS
Definition: ObjectMgr.h:1043

◆ 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 102 of file ObjectMgr.h.

103{
104 SCRIPT_COMMAND_TALK = 0, // source/target = Creature, target = any, datalong = talk type (see ChatType enum), datalong2 & 1 = player talk (instead of creature), dataint = string_id
105 SCRIPT_COMMAND_EMOTE = 1, // source/target = Creature, datalong = emote id, datalong2 = 0: set emote state; > 0: play emote state
107 SCRIPT_COMMAND_MOVE_TO = 3, // source/target = Creature, datalong2 = time to reach, x/y/z = destination
110 SCRIPT_COMMAND_TELEPORT_TO = 6, // source/target = Creature/Player (see datalong2), datalong = map_id, datalong2 = 0: Player; 1: Creature, x/y/z = destination, o = orientation
111 SCRIPT_COMMAND_QUEST_EXPLORED = 7, // target/source = Player, target/source = GO/Creature, datalong = quest id, datalong2 = distance or 0
112 SCRIPT_COMMAND_KILL_CREDIT = 8, // target/source = Player, datalong = creature entry, datalong2 = 0: personal credit, 1: group credit
113 SCRIPT_COMMAND_RESPAWN_GAMEOBJECT = 9, // source = WorldObject (summoner), datalong = GO guid, datalong2 = despawn delay
114 SCRIPT_COMMAND_TEMP_SUMMON_CREATURE = 10, // source = WorldObject (summoner), datalong = creature entry, datalong2 = despawn delay, x/y/z = summon position, o = orientation
115 SCRIPT_COMMAND_OPEN_DOOR = 11, // source = Unit, datalong = GO guid, datalong2 = reset delay (min 15)
116 SCRIPT_COMMAND_CLOSE_DOOR = 12, // source = Unit, datalong = GO guid, datalong2 = reset delay (min 15)
117 SCRIPT_COMMAND_ACTIVATE_OBJECT = 13, // source = Unit, target = GO
118 SCRIPT_COMMAND_REMOVE_AURA = 14, // source (datalong2 != 0) or target (datalong2 == 0) = Unit, datalong = spell id
119 SCRIPT_COMMAND_CAST_SPELL = 15, // source and/or target = Unit, datalong2 = cast direction (0: s->t 1: s->s 2: t->t 3: t->s 4: s->creature with dataint entry), dataint & 1 = triggered flag
120 SCRIPT_COMMAND_PLAY_SOUND = 16, // source = WorldObject, target = none/Player, datalong = sound id, datalong2 (bitmask: 0/1=anyone/player, 0/2=without/with distance dependency, so 1|2 = 3 is target with distance dependency)
121 SCRIPT_COMMAND_CREATE_ITEM = 17, // target/source = Player, datalong = item entry, datalong2 = amount
122 SCRIPT_COMMAND_DESPAWN_SELF = 18, // target/source = Creature, datalong = despawn delay
123
124 SCRIPT_COMMAND_LOAD_PATH = 20, // source = Unit, datalong = path id, datalong2 = is repeatable
125 SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT = 21, // source = WorldObject (if present used as a search center), datalong = script id, datalong2 = unit lowguid, dataint = script table to use (see ScriptsType)
126 SCRIPT_COMMAND_KILL = 22, // source/target = Creature, dataint = remove corpse attribute
127
128 // TrinityCore only
129 SCRIPT_COMMAND_ORIENTATION = 30, // source = Unit, target (datalong > 0) = Unit, datalong = > 0 turn source to face target, o = orientation
130 SCRIPT_COMMAND_EQUIP = 31, // soucre = Creature, datalong = equipment id
131 SCRIPT_COMMAND_MODEL = 32, // source = Creature, datalong = model id
132 SCRIPT_COMMAND_CLOSE_GOSSIP = 33, // source = Player
133 SCRIPT_COMMAND_PLAYMOVIE = 34, // source = Player, datalong = movie id
134 SCRIPT_COMMAND_MOVEMENT = 35, // source = Creature, datalong = MovementType, datalong2 = MovementDistance (wander_distance f.ex.), dataint = pathid
135 SCRIPT_COMMAND_PLAY_ANIMKIT = 36 // source = Creature, datalong = AnimKit id
136};
@ SCRIPT_COMMAND_EMOTE
Definition: ObjectMgr.h:105
@ SCRIPT_COMMAND_CREATE_ITEM
Definition: ObjectMgr.h:121
@ SCRIPT_COMMAND_DESPAWN_SELF
Definition: ObjectMgr.h:122
@ SCRIPT_COMMAND_CLOSE_DOOR
Definition: ObjectMgr.h:116
@ SCRIPT_COMMAND_CAST_SPELL
Definition: ObjectMgr.h:119
@ SCRIPT_COMMAND_RESPAWN_GAMEOBJECT
Definition: ObjectMgr.h:113
@ SCRIPT_COMMAND_QUEST_EXPLORED
Definition: ObjectMgr.h:111
@ SCRIPT_COMMAND_ACTIVATE_OBJECT
Definition: ObjectMgr.h:117
@ SCRIPT_COMMAND_TALK
Definition: ObjectMgr.h:104
@ SCRIPT_COMMAND_OPEN_DOOR
Definition: ObjectMgr.h:115
@ SCRIPT_COMMAND_EQUIP
Definition: ObjectMgr.h:130
@ SCRIPT_COMMAND_PLAYMOVIE
Definition: ObjectMgr.h:133
@ SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT
Definition: ObjectMgr.h:125
@ SCRIPT_COMMAND_PLAY_ANIMKIT
Definition: ObjectMgr.h:135
@ SCRIPT_COMMAND_TELEPORT_TO
Definition: ObjectMgr.h:110
@ SCRIPT_COMMAND_FIELD_SET_DEPRECATED
Definition: ObjectMgr.h:106
@ SCRIPT_COMMAND_MOVE_TO
Definition: ObjectMgr.h:107
@ SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED
Definition: ObjectMgr.h:109
@ SCRIPT_COMMAND_TEMP_SUMMON_CREATURE
Definition: ObjectMgr.h:114
@ SCRIPT_COMMAND_MOVEMENT
Definition: ObjectMgr.h:134
@ SCRIPT_COMMAND_KILL_CREDIT
Definition: ObjectMgr.h:112
@ SCRIPT_COMMAND_KILL
Definition: ObjectMgr.h:126
@ SCRIPT_COMMAND_LOAD_PATH
Definition: ObjectMgr.h:124
@ SCRIPT_COMMAND_ORIENTATION
Definition: ObjectMgr.h:129
@ SCRIPT_COMMAND_PLAY_SOUND
Definition: ObjectMgr.h:120
@ SCRIPT_COMMAND_MODEL
Definition: ObjectMgr.h:131
@ SCRIPT_COMMAND_CLOSE_GOSSIP
Definition: ObjectMgr.h:132
@ SCRIPT_COMMAND_REMOVE_AURA
Definition: ObjectMgr.h:118
@ SCRIPT_COMMAND_FLAG_SET_DEPRECATED
Definition: ObjectMgr.h:108

◆ ScriptsType

Enumerator
SCRIPTS_FIRST 
SCRIPTS_SPELL 
SCRIPTS_EVENT 
SCRIPTS_WAYPOINT 
SCRIPTS_LAST 

Definition at line 173 of file ObjectMgr.h.

174{
175 SCRIPTS_FIRST = 1,
176
180
182};
@ SCRIPTS_WAYPOINT
Definition: ObjectMgr.h:179
@ SCRIPTS_FIRST
Definition: ObjectMgr.h:175
@ SCRIPTS_EVENT
Definition: ObjectMgr.h:178
@ SCRIPTS_SPELL
Definition: ObjectMgr.h:177
@ SCRIPTS_LAST
Definition: ObjectMgr.h:181

◆ SkillRangeType

Enumerator
SKILL_RANGE_LANGUAGE 
SKILL_RANGE_LEVEL 
SKILL_RANGE_MONO 
SKILL_RANGE_RANK 
SKILL_RANGE_NONE 

Definition at line 958 of file ObjectMgr.h.

959{
960 SKILL_RANGE_LANGUAGE, // 300..300
961 SKILL_RANGE_LEVEL, // 1..max skill for level
962 SKILL_RANGE_MONO, // 1..1, grey monolite bar
963 SKILL_RANGE_RANK, // 1..skill for known rank
964 SKILL_RANGE_NONE // 0..0 always
965};
@ SKILL_RANGE_MONO
Definition: ObjectMgr.h:962
@ SKILL_RANGE_NONE
Definition: ObjectMgr.h:964
@ SKILL_RANGE_LANGUAGE
Definition: ObjectMgr.h:960
@ SKILL_RANGE_RANK
Definition: ObjectMgr.h:963
@ SKILL_RANGE_LEVEL
Definition: ObjectMgr.h:961

◆ SummonerType

Enumerator
SUMMONER_TYPE_CREATURE 
SUMMONER_TYPE_GAMEOBJECT 
SUMMONER_TYPE_MAP 

Definition at line 65 of file ObjectMgr.h.

66{
70};
@ SUMMONER_TYPE_MAP
Definition: ObjectMgr.h:69
@ SUMMONER_TYPE_CREATURE
Definition: ObjectMgr.h:67
@ SUMMONER_TYPE_GAMEOBJECT
Definition: ObjectMgr.h:68

Function Documentation

◆ ExtractExtendedPlayerName()

ExtendedPlayerName ExtractExtendedPlayerName ( std::string const &  name)

Definition at line 181 of file ObjectMgr.cpp.

182{
183 size_t pos = name.find('-');
184 if (pos != std::string::npos)
185 return ExtendedPlayerName(name.substr(0, pos), name.substr(pos + 1));
186 else
187 return ExtendedPlayerName(name, "");
188}
+ Here is the caller graph for this function:

◆ GetScriptCommandName()

std::string GetScriptCommandName ( ScriptCommands  command)

Definition at line 108 of file ObjectMgr.cpp.

109{
110 std::string res = "";
111 switch (command)
112 {
113 case SCRIPT_COMMAND_TALK: res = "SCRIPT_COMMAND_TALK"; break;
114 case SCRIPT_COMMAND_EMOTE: res = "SCRIPT_COMMAND_EMOTE"; break;
115 case SCRIPT_COMMAND_FIELD_SET_DEPRECATED: res = "SCRIPT_COMMAND_FIELD_SET_DEPRECATED"; break;
116 case SCRIPT_COMMAND_MOVE_TO: res = "SCRIPT_COMMAND_MOVE_TO"; break;
117 case SCRIPT_COMMAND_FLAG_SET_DEPRECATED: res = "SCRIPT_COMMAND_FLAG_SET_DEPRECATED"; break;
118 case SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED: res = "SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED"; break;
119 case SCRIPT_COMMAND_TELEPORT_TO: res = "SCRIPT_COMMAND_TELEPORT_TO"; break;
120 case SCRIPT_COMMAND_QUEST_EXPLORED: res = "SCRIPT_COMMAND_QUEST_EXPLORED"; break;
121 case SCRIPT_COMMAND_KILL_CREDIT: res = "SCRIPT_COMMAND_KILL_CREDIT"; break;
122 case SCRIPT_COMMAND_RESPAWN_GAMEOBJECT: res = "SCRIPT_COMMAND_RESPAWN_GAMEOBJECT"; break;
123 case SCRIPT_COMMAND_TEMP_SUMMON_CREATURE: res = "SCRIPT_COMMAND_TEMP_SUMMON_CREATURE"; break;
124 case SCRIPT_COMMAND_OPEN_DOOR: res = "SCRIPT_COMMAND_OPEN_DOOR"; break;
125 case SCRIPT_COMMAND_CLOSE_DOOR: res = "SCRIPT_COMMAND_CLOSE_DOOR"; break;
126 case SCRIPT_COMMAND_ACTIVATE_OBJECT: res = "SCRIPT_COMMAND_ACTIVATE_OBJECT"; break;
127 case SCRIPT_COMMAND_REMOVE_AURA: res = "SCRIPT_COMMAND_REMOVE_AURA"; break;
128 case SCRIPT_COMMAND_CAST_SPELL: res = "SCRIPT_COMMAND_CAST_SPELL"; break;
129 case SCRIPT_COMMAND_PLAY_SOUND: res = "SCRIPT_COMMAND_PLAY_SOUND"; break;
130 case SCRIPT_COMMAND_CREATE_ITEM: res = "SCRIPT_COMMAND_CREATE_ITEM"; break;
131 case SCRIPT_COMMAND_DESPAWN_SELF: res = "SCRIPT_COMMAND_DESPAWN_SELF"; break;
132 case SCRIPT_COMMAND_LOAD_PATH: res = "SCRIPT_COMMAND_LOAD_PATH"; break;
133 case SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT: res = "SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT"; break;
134 case SCRIPT_COMMAND_KILL: res = "SCRIPT_COMMAND_KILL"; break;
135 // TrinityCore only
136 case SCRIPT_COMMAND_ORIENTATION: res = "SCRIPT_COMMAND_ORIENTATION"; break;
137 case SCRIPT_COMMAND_EQUIP: res = "SCRIPT_COMMAND_EQUIP"; break;
138 case SCRIPT_COMMAND_MODEL: res = "SCRIPT_COMMAND_MODEL"; break;
139 case SCRIPT_COMMAND_CLOSE_GOSSIP: res = "SCRIPT_COMMAND_CLOSE_GOSSIP"; break;
140 case SCRIPT_COMMAND_PLAYMOVIE: res = "SCRIPT_COMMAND_PLAYMOVIE"; break;
141 case SCRIPT_COMMAND_MOVEMENT: res = "SCRIPT_COMMAND_MOVEMENT"; break;
142 case SCRIPT_COMMAND_PLAY_ANIMKIT: res = "SCRIPT_COMMAND_PLAY_ANIMKIT"; break;
143 default:
144 {
145 char sz[32];
146 sprintf(sz, "Unknown command: %d", command);
147 res = sz;
148 break;
149 }
150 }
151 return res;
152}
+ Here is the caller graph for this function:

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

Definition at line 95 of file ObjectMgr.cpp.

96{
97 ScriptMapMap* res = nullptr;
98 switch (type)
99 {
100 case SCRIPTS_SPELL: res = &sSpellScripts; break;
101 case SCRIPTS_EVENT: res = &sEventScripts; break;
102 case SCRIPTS_WAYPOINT: res = &sWaypointScripts; break;
103 default: break;
104 }
105 return res;
106}
ScriptMapMap sSpellScripts
Definition: ObjectMgr.cpp:78
ScriptMapMap sEventScripts
Definition: ObjectMgr.cpp:79
ScriptMapMap sWaypointScripts
Definition: ObjectMgr.cpp:80
std::map< uint32, ScriptMap > ScriptMapMap
Definition: ObjectMgr.h:418
+ Here is the caller graph for this function:

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 82 of file ObjectMgr.cpp.

83{
84 std::string res = "";
85 switch (type)
86 {
87 case SCRIPTS_SPELL: res = "spell_scripts"; break;
88 case SCRIPTS_EVENT: res = "event_scripts"; break;
89 case SCRIPTS_WAYPOINT: res = "waypoint_scripts"; break;
90 default: break;
91 }
92 return res;
93}
+ Here is the caller graph for this function:

◆ GetSkillRangeType()

SkillRangeType GetSkillRangeType ( SkillRaceClassInfoEntry const *  rcEntry)

Definition at line 8979 of file ObjectMgr.cpp.

8980{
8981 SkillLineEntry const* skill = sSkillLineStore.LookupEntry(rcEntry->SkillID);
8982 if (!skill)
8983 return SKILL_RANGE_NONE;
8984
8985 if (sObjectMgr->GetSkillTier(rcEntry->SkillTierID))
8986 return SKILL_RANGE_RANK;
8987
8988 if (rcEntry->SkillID == SKILL_RUNEFORGING)
8989 return SKILL_RANGE_MONO;
8990
8991 switch (skill->CategoryID)
8992 {
8994 return SKILL_RANGE_MONO;
8996 return SKILL_RANGE_LANGUAGE;
8997 }
8998
8999 return SKILL_RANGE_LEVEL;
9000}
DB2Storage< SkillLineEntry > sSkillLineStore("SkillLine.db2", &SkillLineLoadInfo::Instance)
#define sObjectMgr
Definition: ObjectMgr.h:1946
@ SKILL_CATEGORY_ARMOR
@ SKILL_CATEGORY_LANGUAGES
@ SKILL_RUNEFORGING
+ Here is the caller graph for this function:

◆ normalizePlayerName()

TC_GAME_API bool normalizePlayerName ( std::string &  name)

Definition at line 161 of file ObjectMgr.cpp.

162{
163 if (name.empty())
164 return false;
165
166 std::wstring tmp;
167 if (!Utf8toWStr(name, tmp))
168 return false;
169
170 wstrToLower(tmp);
171 if (!tmp.empty())
172 tmp[0] = wcharToUpper(tmp[0]);
173
174 if (!WStrToUtf8(tmp, name))
175 return false;
176
177 return true;
178}
bool WStrToUtf8(wchar_t const *wstr, size_t size, std::string &utf8str)
Definition: Util.cpp:417
void wstrToLower(std::wstring &str)
Definition: Util.cpp:464
bool Utf8toWStr(char const *utf8str, size_t csize, wchar_t *wstr, size_t &wsize)
Definition: Util.cpp:367
wchar_t wcharToUpper(wchar_t wchar)
Definition: Util.h:251
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ sEventScripts

TC_GAME_API ScriptMapMap sEventScripts
extern

Definition at line 79 of file ObjectMgr.cpp.

◆ sSpellScripts

TC_GAME_API ScriptMapMap sSpellScripts
extern

Definition at line 78 of file ObjectMgr.cpp.

◆ sWaypointScripts

TC_GAME_API ScriptMapMap sWaypointScripts
extern

Definition at line 80 of file ObjectMgr.cpp.