![]() |
TrinityCore
|
#include <LootMgr.h>
Public Member Functions | |
| LootStore (char const *name, char const *entryName, bool ratesAllowed) | |
| LootStore (LootStore const &)=delete | |
| LootStore (LootStore &&) noexcept | |
| LootStore & | operator= (LootStore const &)=delete |
| LootStore & | operator= (LootStore &&) noexcept |
| ~LootStore () | |
| void | Verify () const |
| uint32 | LoadAndCollectLootIds (LootIdSet &lootIdSet) |
| void | CheckLootRefs (LootIdSet *ref_set=nullptr) const |
| void | ReportUnusedIds (LootIdSet const &lootIdSet) const |
| void | ReportNonExistingId (uint32 lootId, char const *ownerType, uint32 ownerId) const |
| bool | HaveLootFor (uint32 loot_id) const |
| bool | HaveQuestLootFor (uint32 loot_id) const |
| bool | HaveQuestLootForPlayer (uint32 loot_id, Player const *player) const |
| LootTemplate const * | GetLootFor (uint32 loot_id) const |
| LootTemplate * | GetLootForConditionFill (uint32 loot_id) |
| char const * | GetName () const |
| char const * | GetEntryName () const |
| bool | IsRatesAllowed () const |
Protected Member Functions | |
| uint32 | LoadLootTable () |
| void | Clear () |
Private Attributes | |
| LootTemplateMap | m_LootTemplates |
| char const * | m_name |
| char const * | m_entryName |
| bool | m_ratesAllowed |
|
explicit |
Definition at line 113 of file LootMgr.cpp.
|
delete |
|
defaultnoexcept |
|
default |
| void LootStore::CheckLootRefs | ( | LootIdSet * | ref_set = nullptr | ) | const |
Definition at line 226 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by reload_commandscript::HandleReloadLootTemplatesCreatureCommand(), reload_commandscript::HandleReloadLootTemplatesDisenchantCommand(), reload_commandscript::HandleReloadLootTemplatesFishingCommand(), reload_commandscript::HandleReloadLootTemplatesGameobjectCommand(), reload_commandscript::HandleReloadLootTemplatesItemCommand(), reload_commandscript::HandleReloadLootTemplatesMailCommand(), reload_commandscript::HandleReloadLootTemplatesMillingCommand(), reload_commandscript::HandleReloadLootTemplatesPickpocketingCommand(), reload_commandscript::HandleReloadLootTemplatesProspectingCommand(), reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), reload_commandscript::HandleReloadLootTemplatesSpellCommand(), and LoadLootTemplates_Reference().
|
protected |
Definition at line 123 of file LootMgr.cpp.
Referenced by LoadLootTable().
|
inline |
Definition at line 100 of file LootMgr.h.
Referenced by ReportUnusedIds().
| LootTemplate const * LootStore::GetLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 207 of file LootMgr.cpp.
References m_LootTemplates, and Trinity::Containers::MapGetValuePtr().
Referenced by LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), Loot::FillLoot(), GenerateDungeonEncounterPersonalLoot(), LootTemplate::HasDropForPlayer(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), LootItemStorage::LoadStoredLoot(), LootTemplate::Process(), and LootTemplate::ProcessPersonalLoot().
| LootTemplate * LootStore::GetLootForConditionFill | ( | uint32 | loot_id | ) |
Definition at line 212 of file LootMgr.cpp.
References m_LootTemplates, and Trinity::Containers::MapGetValuePtr().
Referenced by ConditionMgr::LoadConditions().
|
inline |
Definition at line 99 of file LootMgr.h.
Referenced by Loot::FillLoot(), LootStoreItem::IsValid(), LoadLootTable(), ReportNonExistingId(), ReportUnusedIds(), and LootTemplate::LootGroup::Verify().
|
inline |
Definition at line 92 of file LootMgr.h.
Referenced by Spell::CheckItems(), SpellInfo::CheckTarget(), ConditionMgr::isSourceTypeValid(), and Unit::Kill().
| bool LootStore::HaveQuestLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 189 of file LootMgr.cpp.
References m_LootTemplates, and Trinity::Containers::MapGetValuePtr().
Referenced by ObjectMgr::LoadGameObjectForQuests().
Definition at line 198 of file LootMgr.cpp.
References m_LootTemplates, and Trinity::Containers::MapGetValuePtr().
Referenced by GameObject::ActivateToQuest().
|
inline |
Definition at line 101 of file LootMgr.h.
Referenced by Loot::FillLoot(), and GenerateDungeonEncounterPersonalLoot().
Definition at line 217 of file LootMgr.cpp.
References LoadLootTable(), m_LootTemplates, and Trinity::Containers::MapKey.
Referenced by 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().
|
protected |
Definition at line 138 of file LootMgr.cpp.
References Clear(), Field::GetBool(), Field::GetFloat(), Field::GetInt8(), GetName(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LootStoreItem::IsValid(), m_LootTemplates, Verify(), and WorldDatabase.
Referenced by LoadAndCollectLootIds().
Definition at line 239 of file LootMgr.cpp.
References GetName(), and TC_LOG_ERROR.
Referenced by LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Skinning(), and LoadLootTemplates_Spell().
| void LootStore::ReportUnusedIds | ( | LootIdSet const & | lootIdSet | ) | const |
Definition at line 232 of file LootMgr.cpp.
References GetEntryName(), GetName(), and TC_LOG_ERROR.
Referenced by 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().
| void LootStore::Verify | ( | ) | const |
Definition at line 130 of file LootMgr.cpp.
References m_LootTemplates, and Verify().
Referenced by LoadLootTable(), and Verify().
|
private |
Definition at line 106 of file LootMgr.h.
Referenced by CheckLootRefs(), GetLootFor(), GetLootForConditionFill(), HaveQuestLootFor(), HaveQuestLootForPlayer(), LoadAndCollectLootIds(), LoadLootTable(), and Verify().