![]() |
TrinityCore
|
#include "GameTables.h"#include "ItemTemplate.h"#include "Timer.h"#include "Log.h"#include "StringConvert.h"#include "Util.h"#include <boost/filesystem/path.hpp>#include <fstream>#include <sstream>
Include dependency graph for GameTables.cpp:Go to the source code of this file.
Functions | |
| template<class T > | |
| uint32 | LoadGameTable (std::vector< std::string > &errors, GameTable< T > &storage, boost::filesystem::path const &path) |
| void | LoadGameTables (std::string const &dataPath) |
| template<class T > | |
| float | GetIlvlStatMultiplier (T const *row, InventoryType invType) |
| template float | GetIlvlStatMultiplier (GtCombatRatingsMultByILvl const *row, InventoryType invType) |
| template float | GetIlvlStatMultiplier (GtStaminaMultByILvl const *row, InventoryType invType) |
| template float GetIlvlStatMultiplier | ( | GtCombatRatingsMultByILvl const * | row, |
| InventoryType | invType | ||
| ) |
| template float GetIlvlStatMultiplier | ( | GtStaminaMultByILvl const * | row, |
| InventoryType | invType | ||
| ) |
| float GetIlvlStatMultiplier | ( | T const * | row, |
| InventoryType | invType | ||
| ) |
Definition at line 151 of file GameTables.cpp.
References INVTYPE_2HWEAPON, INVTYPE_FINGER, INVTYPE_HOLDABLE, INVTYPE_NECK, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_SHIELD, INVTYPE_TRINKET, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, and INVTYPE_WEAPONOFFHAND.
Referenced by Player::_ApplyItemBonuses(), and SpellEffectInfo::CalcBaseValue().
|
inline |
Definition at line 44 of file GameTables.cpp.
References ASSERT, RemoveCRLF(), GameTable< T >::SetData(), Trinity::StringFormat(), SZFMTD, and Trinity::Tokenize().
Referenced by LoadGameTables().
| void LoadGameTables | ( | std::string const & | dataPath | ) |
Definition at line 104 of file GameTables.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LoadGameTable(), sArtifactKnowledgeMultiplierGameTable, sArtifactLevelXPGameTable, sBarberShopCostBaseGameTable, sBaseMPGameTable, sBattlePetXPGameTable, sCombatRatingsGameTable, sCombatRatingsMultByILvlGameTable, sHpPerStaGameTable, sItemLevelByLevelTable, sItemSocketCostPerLevelGameTable, sNpcManaCostScalerGameTable, sSpellScalingGameTable, sStaminaMultByILvlGameTable, sXpGameTable, SZFMTD, TC_LOG_INFO, and WPFatal.
Referenced by World::SetInitialWorldSettings().
| GameTable<GtArtifactKnowledgeMultiplierEntry> sArtifactKnowledgeMultiplierGameTable |
Definition at line 28 of file GameTables.cpp.
Referenced by Item::GiveArtifactXp(), and LoadGameTables().
| GameTable<GtArtifactLevelXPEntry> sArtifactLevelXPGameTable |
Definition at line 29 of file GameTables.cpp.
Referenced by Item::GetTotalUnlockedArtifactPowers(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleConfirmArtifactRespec(), and LoadGameTables().
| GameTable<GtBarberShopCostBaseEntry> sBarberShopCostBaseGameTable |
Definition at line 30 of file GameTables.cpp.
Referenced by Player::GetBarberShopCost(), and LoadGameTables().
| GameTable<GtBaseMPEntry> sBaseMPGameTable |
Definition at line 31 of file GameTables.cpp.
Referenced by ObjectMgr::GetPlayerClassLevelInfo(), and LoadGameTables().
| GameTable<GtBattlePetXPEntry> sBattlePetXPGameTable |
Definition at line 32 of file GameTables.cpp.
Referenced by BattlePets::BattlePetMgr::GrantBattlePetExperience(), and LoadGameTables().
| GameTable<GtCombatRatingsEntry> sCombatRatingsGameTable |
Definition at line 33 of file GameTables.cpp.
Referenced by Player::GetRatingMultiplier(), and LoadGameTables().
| GameTable<GtCombatRatingsMultByILvl> sCombatRatingsMultByILvlGameTable |
Definition at line 34 of file GameTables.cpp.
Referenced by Player::_ApplyItemBonuses(), SpellEffectInfo::CalcBaseValue(), and LoadGameTables().
| GameTable<GtHpPerStaEntry> sHpPerStaGameTable |
Definition at line 35 of file GameTables.cpp.
Referenced by Player::GetHealthBonusFromStamina(), and LoadGameTables().
| GameTable<GtItemLevelByLevelEntry> sItemLevelByLevelTable |
Definition at line 36 of file GameTables.cpp.
Referenced by Unit::CalcArmorReducedDamage(), and LoadGameTables().
| GameTable<GtItemSocketCostPerLevelEntry> sItemSocketCostPerLevelGameTable |
Definition at line 37 of file GameTables.cpp.
Referenced by Item::GetItemStatValue(), and LoadGameTables().
| GameTable<GtNpcManaCostScalerEntry> sNpcManaCostScalerGameTable |
Definition at line 38 of file GameTables.cpp.
Referenced by SpellInfo::CalcPowerCost(), and LoadGameTables().
| GameTable<GtSpellScalingEntry> sSpellScalingGameTable |
Definition at line 39 of file GameTables.cpp.
Referenced by Player::ApplyEnchantment(), SpellEffectInfo::CalcBaseValue(), and LoadGameTables().
| GameTable<GtStaminaMultByILvl> sStaminaMultByILvlGameTable |
Definition at line 40 of file GameTables.cpp.
Referenced by Player::_ApplyItemBonuses(), SpellEffectInfo::CalcBaseValue(), and LoadGameTables().
Definition at line 41 of file GameTables.cpp.
Referenced by Trinity::XP::BaseGain(), LoadGameTables(), and ObjectMgr::LoadPlayerInfo().