Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ObjectMgr.cpp File Reference
#include "AccountMgr.h"
#include "AchievementMgr.h"
#include "ArenaTeam.h"
#include "ArenaTeamMgr.h"
#include "AreaTableUtils.h"
#include "BattlePet.h"
#include "Chat.h"
#include "Common.h"
#include "DatabaseEnv.h"
#include "DB2Enums.h"
#include "DB2Stores.h"
#include "DB2Structure.h"
#include "DisableMgr.h"
#include "GameEventMgr.h"
#include "GossipDef.h"
#include "GossipSchema.h"
#include "GroupMgr.h"
#include "GuildMgr.h"
#include "InstanceSaveMgr.h"
#include "Language.h"
#include "LegacyTransportSupport.h"
#include "LFGMgr.h"
#include "Log.h"
#include "MapManager.h"
#include "ObjectMgr.h"
#include "Platform/TimeUtils.h"
#include "Pet.h"
#include "PlayerRestState.h"
#include "PoolMgr.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "Transport.h"
#include "TransportMgr.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Vehicle.h"
#include "WaypointManager.h"
#include "World.h"
#include "DBCStores.h"
Include dependency graph for ObjectMgr.cpp:

Go to the source code of this file.

Enumerations

enum  LanguageType {
  LT_BASIC_LATIN = 0x0000 , LT_EXTENDEN_LATIN = 0x0001 , LT_CYRILLIC = 0x0002 , LT_EAST_ASIA = 0x0004 ,
  LT_ANY = 0xFFFF
}

Functions

void CheckAndFixGOChairHeightId (GameObjectTemplate const *goInfo, uint32 &dataN, uint32 N)
void CheckGOConsumable (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
void CheckGOLinkedTrapId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
void CheckGOLockId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
void CheckGONoDamageImmuneId (GameObjectTemplate *goTemplate, uint32 dataN, uint32 N)
void CheckGOSpellId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
void FillDisenchantFields (uint32 *disenchantID, uint32 *requiredDisenchantSkill, ItemTemplate const &itemTemplate)
void FillItemDamageFields (float *minDamage, float *maxDamage, float *dps, uint32 itemLevel, uint32 itemClass, uint32 itemSubClass, uint32 quality, uint32 delay, float statScalingFactor, uint32 inventoryType, uint32 flags2)
uint32 FillMaxDurability (uint32 itemClass, uint32 itemSubClass, uint32 inventoryType, uint32 quality, uint32 itemLevel)
LanguageDesc const * GetLanguageDescByID (Language lang)
static LanguageType GetRealmLanguageType (bool create)
std::string GetScriptCommandName (ScriptCommands command)
ScriptMapMapGetScriptsMapByType (ScriptsType type)
std::string GetScriptsTableNameByType (ScriptsType type)
SkillRangeType GetSkillRangeType (SkillLineEntry const *pSkill, bool racial)
bool isValidString (const std::wstring &wstr, uint32 strictMask, bool numericOrSpace, bool create=false)
bool LoadSkyFireStrings (const char *table, int32 start_value, int32 end_value)
bool normalizePlayerName (std::string &name)

Variables

LanguageDesc lang_description [LANGUAGES_COUNT]
ScriptMapMap sEventScripts
ScriptMapMap sSpellScripts
ScriptMapMap sWaypointScripts

Enumeration Type Documentation

◆ LanguageType

Enumerator
LT_BASIC_LATIN 
LT_EXTENDEN_LATIN 
LT_CYRILLIC 
LT_EAST_ASIA 
LT_ANY 

Definition at line 7363 of file ObjectMgr.cpp.

Function Documentation

◆ CheckAndFixGOChairHeightId()

void CheckAndFixGOChairHeightId ( GameObjectTemplate const * goInfo,
uint32 & dataN,
uint32 N )
inline

◆ CheckGOConsumable()

void CheckGOConsumable ( GameObjectTemplate const * goInfo,
uint32 dataN,
uint32 N )
inline

◆ CheckGOLinkedTrapId()

void CheckGOLinkedTrapId ( GameObjectTemplate const * goInfo,
uint32 dataN,
uint32 N )
inline

◆ CheckGOLockId()

void CheckGOLockId ( GameObjectTemplate const * goInfo,
uint32 dataN,
uint32 N )
inline

◆ CheckGONoDamageImmuneId()

void CheckGONoDamageImmuneId ( GameObjectTemplate * goTemplate,
uint32 dataN,
uint32 N )
inline

◆ CheckGOSpellId()

void CheckGOSpellId ( GameObjectTemplate const * goInfo,
uint32 dataN,
uint32 N )
inline

◆ FillDisenchantFields()

◆ FillItemDamageFields()

◆ FillMaxDurability()

uint32 FillMaxDurability ( uint32 itemClass,
uint32 itemSubClass,
uint32 inventoryType,
uint32 quality,
uint32 itemLevel )

◆ GetLanguageDescByID()

LanguageDesc const * GetLanguageDescByID ( Language lang)

◆ GetRealmLanguageType()

◆ GetScriptCommandName()

◆ GetScriptsMapByType()

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType type)

◆ GetSkillRangeType()

◆ isValidString()

bool isValidString ( const std::wstring & wstr,
uint32 strictMask,
bool numericOrSpace,
bool create = false )

◆ LoadSkyFireStrings()

bool LoadSkyFireStrings ( const char * table,
int32 start_value,
int32 end_value )

Definition at line 8557 of file ObjectMgr.cpp.

References MAX_DB_SCRIPT_STRING_ID, SF_LOG_ERROR, sObjectMgr, and table.

◆ normalizePlayerName()

bool normalizePlayerName ( std::string & name)

Definition at line 165 of file ObjectMgr.cpp.

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

Referenced by ChatHandler::extractGuidFromLink(), ChatHandler::extractPlayerNameFromLink(), character_commandscript::GetDeletedCharacterInfoList(), ChatHandler::GetPlayerGroupAndGUIDByName(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleAddIgnoreOpcode(), WorldSession::HandleAddonMessagechatOpcode(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), character_commandscript::HandleCharacterDeletedRestoreCommand(), character_commandscript::HandleCharacterEraseCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharFactionOrRaceChange(), WorldSession::HandleCharRenameOpcode(), misc_commandscript::HandleFreezeCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleMessagechatOpcode(), packet_commandscript::HandlePacketCharStartCommand(), packet_commandscript::HandlePacketCharStopCommand(), character_commandscript::HandlePDumpLoadCommand(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), ticket_commandscript::HandleTicketAssignToCommand(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), misc_commandscript::HandleUnFreezeCommand(), message_commandscript::HandleWhispersCommand(), WorldSession::HandleWhoisOpcode(), and PlayerDumpReader::LoadDump().

Variable Documentation

◆ lang_description

LanguageDesc lang_description[LANGUAGES_COUNT]
Initial value:
=
{
}
@ LANG_GNOMISH_BINARY
@ LANG_PANDAREN_ALLIANCE
@ LANG_PANDAREN_NEUTRAL
@ LANG_PANDAREN_HORDE
@ SKILL_LANG_GNOMISH
@ SKILL_LANG_COMMON
@ SKILL_LANG_PANDAREN_NEUTRAL
@ SKILL_LANG_DRAENEI
@ SKILL_LANG_ORCISH
@ SKILL_LANG_TROLL
@ SKILL_LANG_GUTTERSPEAK
@ SKILL_LANG_OLD_TONGUE
@ SKILL_LANG_TAURAHE
@ SKILL_LANG_PANDAREN_ALLIANCE
@ SKILL_LANG_TITAN
@ SKILL_LANG_DARNASSIAN
@ SKILL_LANG_DEMON_TONGUE
@ SKILL_LANG_DWARVEN
@ SKILL_LANG_THALASSIAN
@ SKILL_LANG_PANDAREN_HORDE
@ SKILL_LANG_DRACONIC
@ SKILL_LANG_WORGEN
@ SKILL_LANG_GOBLIN

Definition at line 185 of file ObjectMgr.cpp.

Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().

◆ sEventScripts

◆ sSpellScripts

◆ sWaypointScripts