|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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"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) |
| ScriptMapMap * | GetScriptsMapByType (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 |
| enum LanguageType |
| Enumerator | |
|---|---|
| LT_BASIC_LATIN | |
| LT_EXTENDEN_LATIN | |
| LT_CYRILLIC | |
| LT_EAST_ASIA | |
| LT_ANY | |
Definition at line 7363 of file ObjectMgr.cpp.
|
inline |
Definition at line 6341 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, SF_LOG_ERROR, GameObjectTemplate::type, UNIT_STAND_STATE_SIT_HIGH_CHAIR, and UNIT_STAND_STATE_SIT_LOW_CHAIR.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 6362 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, SF_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 6322 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, GAMEOBJECT_TYPE_TRAP, SF_LOG_ERROR, sObjectMgr, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 6313 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, SF_LOG_ERROR, sLockStore, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 6353 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, SF_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 6332 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, SF_LOG_ERROR, sSpellMgr, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
| void FillDisenchantFields | ( | uint32 * | disenchantID, |
| uint32 * | requiredDisenchantSkill, | ||
| ItemTemplate const & | itemTemplate ) |
Definition at line 2401 of file ObjectMgr.cpp.
References ItemTemplate::Area, BIND_QUEST_ITEM, ItemTemplate::Bonding, ItemTemplate::Class, ItemTemplate::Flags, Item::GetSpecialPrice(), ItemDisenchantLootEntry::Id, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_PROTO_FLAG_CONJURED, ITEM_PROTO_FLAG_UNK6, ITEM_QUALITY_EPIC, ITEM_QUALITY_UNCOMMON, ItemDisenchantLootEntry::ItemClass, ItemTemplate::ItemId, ItemTemplate::ItemLevel, ItemDisenchantLootEntry::ItemQuality, ItemTemplate::Map, ItemDisenchantLootEntry::MaxItemLevel, ItemDisenchantLootEntry::MinItemLevel, ItemTemplate::Quality, ItemDisenchantLootEntry::RequiredDisenchantSkill, ItemTemplate::RequiredLevel, ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, sItemCurrencyCostStore, sItemDisenchantLootStore, and ItemTemplate::Stackable.
Referenced by ObjectMgr::LoadItemTemplates().
| void FillItemDamageFields | ( | float * | minDamage, |
| float * | maxDamage, | ||
| float * | dps, | ||
| uint32 | itemLevel, | ||
| uint32 | itemClass, | ||
| uint32 | itemSubClass, | ||
| uint32 | quality, | ||
| uint32 | delay, | ||
| float | statScalingFactor, | ||
| uint32 | inventoryType, | ||
| uint32 | flags2 ) |
Definition at line 2251 of file ObjectMgr.cpp.
References ItemDamageEntry::DPS, INVTYPE_2HWEAPON, INVTYPE_AMMO, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_THROWN, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, ITEM_CLASS_WEAPON, ITEM_FLAGS_EXTRA_CASTER_WEAPON, ITEM_QUALITY_ARTIFACT, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, ITEM_SUBCLASS_WEAPON_THROWN, ITEM_SUBCLASS_WEAPON_WAND, DBCStorage< T >::LookupEntry(), sItemDamageAmmoStore, sItemDamageOneHandCasterStore, sItemDamageOneHandStore, sItemDamageRangedStore, sItemDamageThrownStore, sItemDamageTwoHandCasterStore, sItemDamageTwoHandStore, and sItemDamageWandStore.
Referenced by ObjectMgr::LoadItemTemplates().
| uint32 FillMaxDurability | ( | uint32 | itemClass, |
| uint32 | itemSubClass, | ||
| uint32 | inventoryType, | ||
| uint32 | quality, | ||
| uint32 | itemLevel ) |
Definition at line 2318 of file ObjectMgr.cpp.
References INVTYPE_ROBE, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, MAX_INVTYPE, MAX_ITEM_QUALITY, and MAX_ITEM_SUBCLASS_WEAPON.
Referenced by ObjectMgr::LoadItemTemplates().
| LanguageDesc const * GetLanguageDescByID | ( | Language | lang | ) |
Definition at line 213 of file ObjectMgr.cpp.
References lang_description, and LANGUAGES_COUNT.
Referenced by WorldSession::HandleMessagechatOpcode(), and CreatureTextMgr::LoadCreatureTexts().
|
static |
Definition at line 7372 of file ObjectMgr.cpp.
References CONFIG_REALM_ZONE, LT_ANY, LT_BASIC_LATIN, LT_CYRILLIC, LT_EAST_ASIA, LT_EXTENDEN_LATIN, REALM_ZONE_CHINA, REALM_ZONE_DEVELOPMENT, REALM_ZONE_ENGLISH, REALM_ZONE_FRENCH, REALM_ZONE_GERMAN, REALM_ZONE_KOREA, REALM_ZONE_LATIN_AMERICA, REALM_ZONE_OCEANIC, REALM_ZONE_QA_SERVER, REALM_ZONE_RUSSIAN, REALM_ZONE_SPANISH, REALM_ZONE_TAIWAN, REALM_ZONE_TEST_SERVER, REALM_ZONE_UNITED_STATES, REALM_ZONE_UNKNOWN, and sWorld.
Referenced by isValidString().
| std::string GetScriptCommandName | ( | ScriptCommands | command | ) |
Definition at line 114 of file ObjectMgr.cpp.
References SCRIPT_COMMAND_ACTIVATE_OBJECT, SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT, SCRIPT_COMMAND_CAST_SPELL, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_CLOSE_GOSSIP, SCRIPT_COMMAND_CREATE_ITEM, SCRIPT_COMMAND_DESPAWN_SELF, SCRIPT_COMMAND_EMOTE, SCRIPT_COMMAND_EQUIP, SCRIPT_COMMAND_FIELD_SET, SCRIPT_COMMAND_FLAG_REMOVE, SCRIPT_COMMAND_FLAG_SET, SCRIPT_COMMAND_KILL, SCRIPT_COMMAND_KILL_CREDIT, SCRIPT_COMMAND_LOAD_PATH, SCRIPT_COMMAND_MODEL, SCRIPT_COMMAND_MOVE_TO, SCRIPT_COMMAND_OPEN_DOOR, SCRIPT_COMMAND_ORIENTATION, SCRIPT_COMMAND_PLAY_SOUND, SCRIPT_COMMAND_PLAYMOVIE, SCRIPT_COMMAND_QUEST_EXPLORED, SCRIPT_COMMAND_REMOVE_AURA, SCRIPT_COMMAND_RESPAWN_GAMEOBJECT, SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_TELEPORT_TO, and SCRIPT_COMMAND_TEMP_SUMMON_CREATURE.
Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| ScriptMapMap * GetScriptsMapByType | ( | ScriptsType | type | ) |
Definition at line 101 of file ObjectMgr.cpp.
References SCRIPTS_EVENT, SCRIPTS_SPELL, SCRIPTS_WAYPOINT, sEventScripts, sSpellScripts, and sWaypointScripts.
Referenced by ObjectMgr::CheckScripts(), ObjectMgr::LoadScripts(), and Map::ScriptsProcess().
| std::string GetScriptsTableNameByType | ( | ScriptsType | type | ) |
Definition at line 88 of file ObjectMgr.cpp.
References SCRIPTS_EVENT, SCRIPTS_SPELL, and SCRIPTS_WAYPOINT.
Referenced by ObjectMgr::CheckScripts(), ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| SkillRangeType GetSkillRangeType | ( | SkillLineEntry const * | pSkill, |
| bool | racial ) |
Definition at line 7761 of file ObjectMgr.cpp.
References SkillLineEntry::categoryId, SkillLineEntry::id, IsProfessionSkill(), SKILL_CATEGORY_ARMOR, SKILL_CATEGORY_ATTRIBUTES, SKILL_CATEGORY_CLASS, SKILL_CATEGORY_GENERIC, SKILL_CATEGORY_LANGUAGES, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_CATEGORY_WEAPON, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_NONE, SKILL_RANGE_RANK, and SKILL_RUNEFORGING.
Referenced by Player::_LoadSkills(), Player::addSpell(), and Player::UpdateSkillsForLevel().
| bool isValidString | ( | const std::wstring & | wstr, |
| uint32 | strictMask, | ||
| bool | numericOrSpace, | ||
| bool | create = false ) |
Definition at line 7400 of file ObjectMgr.cpp.
References GetRealmLanguageType(), isBasicLatinString(), isCyrillicString(), isEastAsianString(), isExtendedLatinString(), LT_CYRILLIC, LT_EAST_ASIA, and LT_EXTENDEN_LATIN.
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), and ObjectMgr::IsValidCharterName().
Definition at line 8557 of file ObjectMgr.cpp.
References MAX_DB_SCRIPT_STRING_ID, SF_LOG_ERROR, sObjectMgr, and table.
| 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().
| LanguageDesc lang_description[LANGUAGES_COUNT] |
Definition at line 185 of file ObjectMgr.cpp.
Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().
| ScriptMapMap sEventScripts |
Definition at line 51 of file ObjectMgr.cpp.
Referenced by FlightPathMovementGenerator::DoEventIfAny(), Transport::DoEventIfAny(), Spell::EffectSendEvent(), GetScriptsMapByType(), ObjectMgr::LoadEventScripts(), Spell::SendLoot(), and GameObject::Use().
| ScriptMapMap sSpellScripts |
Definition at line 50 of file ObjectMgr.cpp.
Referenced by Spell::EffectDummy(), Spell::EffectScriptEffect(), GetScriptsMapByType(), and ObjectMgr::LoadSpellScripts().
| ScriptMapMap sWaypointScripts |
Definition at line 52 of file ObjectMgr.cpp.
Referenced by GetScriptsMapByType(), ObjectMgr::LoadWaypointScripts(), and WaypointMovementGenerator< Creature >::OnArrived().