![]() |
TrinityCore
|
#include "Define.h"#include "ConditionMgr.h"#include "ObjectGuid.h"#include <memory>#include <set>#include <unordered_map>#include <vector>
Include dependency graph for LootMgr.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | LootStoreItem |
| class | LootStore |
| class | LootTemplate |
Typedefs | |
| typedef std::vector< std::unique_ptr< LootStoreItem > > | LootStoreItemList |
| typedef std::unordered_map< uint32, std::unique_ptr< LootTemplate > > | LootTemplateMap |
| typedef std::set< uint32 > | LootIdSet |
Functions | |
| std::unordered_map< ObjectGuid, std::unique_ptr< Loot > > | GenerateDungeonEncounterPersonalLoot (uint32 dungeonEncounterId, uint32 lootId, LootStore const &store, LootType type, WorldObject const *lootOwner, uint32 minMoney, uint32 maxMoney, uint16 lootMode, MapDifficultyEntry const *mapDifficulty, std::vector< Player * > const &tappers) |
| TC_GAME_API void | LoadLootTemplates_Creature () |
| TC_GAME_API void | LoadLootTemplates_Fishing () |
| TC_GAME_API void | LoadLootTemplates_Gameobject () |
| TC_GAME_API void | LoadLootTemplates_Item () |
| TC_GAME_API void | LoadLootTemplates_Mail () |
| TC_GAME_API void | LoadLootTemplates_Milling () |
| TC_GAME_API void | LoadLootTemplates_Pickpocketing () |
| TC_GAME_API void | LoadLootTemplates_Skinning () |
| TC_GAME_API void | LoadLootTemplates_Disenchant () |
| TC_GAME_API void | LoadLootTemplates_Prospecting () |
| TC_GAME_API void | LoadLootTemplates_Spell () |
| TC_GAME_API void | LoadLootTemplates_Reference () |
| TC_GAME_API void | LoadLootTables () |
| typedef std::vector<std::unique_ptr<LootStoreItem> > LootStoreItemList |
| typedef std::unordered_map<uint32, std::unique_ptr<LootTemplate> > LootTemplateMap |
| std::unordered_map< ObjectGuid, std::unique_ptr< Loot > > GenerateDungeonEncounterPersonalLoot | ( | uint32 | dungeonEncounterId, |
| uint32 | lootId, | ||
| LootStore const & | store, | ||
| LootType | type, | ||
| WorldObject const * | lootOwner, | ||
| uint32 | minMoney, | ||
| uint32 | maxMoney, | ||
| uint16 | lootMode, | ||
| MapDifficultyEntry const * | mapDifficulty, | ||
| std::vector< Player * > const & | tappers | ||
| ) |
Definition at line 1036 of file LootMgr.cpp.
References ItemBonusMgr::GetContextForPlayer(), BaseEntity::GetGUID(), LootStore::GetLootFor(), WorldObject::GetMap(), and LootStore::IsRatesAllowed().
Referenced by Unit::Kill(), and GameObject::Use().
| TC_GAME_API void LoadLootTables | ( | ) |
Definition at line 1460 of file LootMgr.cpp.
References LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Fishing(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Mail(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), and LoadLootTemplates_Spell().
Referenced by reload_commandscript::HandleReloadAllLootCommand(), and World::SetInitialWorldSettings().
| TC_GAME_API void LoadLootTemplates_Creature | ( | ) |
Definition at line 1071 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Creature, PLAYER_CORPSE_LOOT_ENTRY, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesCreatureCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Disenchant | ( | ) |
Definition at line 1111 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_BONUS_DISENCHANT_LOOT_ID, LootStore::LoadAndCollectLootIds(), LootTemplates_Disenchant, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sItemBonusStore, sItemDisenchantLootStore, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesDisenchantCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Fishing | ( | ) |
Definition at line 1153 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Fishing, LootStore::ReportUnusedIds(), sAreaTableStore, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesFishingCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Gameobject | ( | ) |
Definition at line 1175 of file LootMgr.cpp.
References GAMEOBJECT_TYPE_CHEST, getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Gameobject, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesGameobjectCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Item | ( | ) |
Definition at line 1221 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_FLAG_HAS_LOOT, LootStore::LoadAndCollectLootIds(), LootTemplates_Item, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesItemCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Mail | ( | ) |
Definition at line 1333 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Mail, LootStore::ReportUnusedIds(), sMailTemplateStore, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesMailCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Milling | ( | ) |
Definition at line 1246 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_FLAG_IS_MILLABLE, LootStore::LoadAndCollectLootIds(), LootTemplates_Milling, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesMillingCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Pickpocketing | ( | ) |
Definition at line 1271 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Pickpocketing, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesPickpocketingCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Prospecting | ( | ) |
Definition at line 1308 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_FLAG_IS_PROSPECTABLE, LootStore::LoadAndCollectLootIds(), LootTemplates_Prospecting, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesProspectingCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Reference | ( | ) |
Definition at line 1432 of file LootMgr.cpp.
References LootStore::CheckLootRefs(), getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Fishing, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Mail, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Reference, LootTemplates_Skinning, LootStore::ReportUnusedIds(), and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesReferenceCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Skinning | ( | ) |
Definition at line 1355 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootStore::LoadAndCollectLootIds(), LootTemplates_Skinning, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), sObjectMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), and LoadLootTables().
| TC_GAME_API void LoadLootTemplates_Spell | ( | ) |
Definition at line 1392 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), SpellInfo::HasAttribute(), SpellInfo::Id, SpellInfo::IsLootCrafting(), LootStore::LoadAndCollectLootIds(), LootTemplates_Spell, LootStore::ReportNonExistingId(), LootStore::ReportUnusedIds(), SPELL_ATTR0_IS_TRADESKILL, SPELL_ATTR0_NOT_SHAPESHIFTED, sSpellMgr, and TC_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesSpellCommand(), and LoadLootTables().
|
extern |
Referenced by LoadLootTemplates_Creature(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Disenchant(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Fishing(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Gameobject(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Item(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Mail(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Milling(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Pickpocketing(), and LoadLootTemplates_Reference().
|
extern |
Referenced by LoadLootTemplates_Prospecting(), and LoadLootTemplates_Reference().
|
extern |
|
extern |
Referenced by LoadLootTemplates_Reference(), and LoadLootTemplates_Skinning().
|
extern |
Referenced by LoadLootTemplates_Spell().