TrinityCore
LootMgr.h File Reference
#include "Define.h"
#include "ConditionMgr.h"
#include "ObjectGuid.h"
#include <list>
#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::list< LootStoreItem * > LootStoreItemList
 
typedef std::unordered_map< uint32, LootTemplate * > LootTemplateMap
 
typedef std::set< uint32LootIdSet
 

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 ()
 

Variables

TC_GAME_API LootStore LootTemplates_Creature
 
TC_GAME_API LootStore LootTemplates_Fishing
 
TC_GAME_API LootStore LootTemplates_Gameobject
 
TC_GAME_API LootStore LootTemplates_Item
 
TC_GAME_API LootStore LootTemplates_Mail
 
TC_GAME_API LootStore LootTemplates_Milling
 
TC_GAME_API LootStore LootTemplates_Pickpocketing
 
TC_GAME_API LootStore LootTemplates_Reference
 
TC_GAME_API LootStore LootTemplates_Skinning
 
TC_GAME_API LootStore LootTemplates_Disenchant
 
TC_GAME_API LootStore LootTemplates_Prospecting
 
TC_GAME_API LootStore LootTemplates_Spell
 

Typedef Documentation

◆ LootIdSet

typedef std::set<uint32> LootIdSet

Definition at line 65 of file LootMgr.h.

◆ LootStoreItemList

typedef std::list<LootStoreItem*> LootStoreItemList

Definition at line 62 of file LootMgr.h.

◆ LootTemplateMap

typedef std::unordered_map<uint32, LootTemplate*> LootTemplateMap

Definition at line 63 of file LootMgr.h.

Function Documentation

◆ GenerateDungeonEncounterPersonalLoot()

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 914 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTables()

TC_GAME_API void LoadLootTables ( )

Definition at line 1337 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Creature()

TC_GAME_API void LoadLootTemplates_Creature ( )

Definition at line 949 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Disenchant()

TC_GAME_API void LoadLootTemplates_Disenchant ( )

Definition at line 989 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Fishing()

TC_GAME_API void LoadLootTemplates_Fishing ( )

Definition at line 1019 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Gameobject()

TC_GAME_API void LoadLootTemplates_Gameobject ( )

Definition at line 1042 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Item()

TC_GAME_API void LoadLootTemplates_Item ( )

Definition at line 1088 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Mail()

TC_GAME_API void LoadLootTemplates_Mail ( )

Definition at line 1207 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Milling()

TC_GAME_API void LoadLootTemplates_Milling ( )

Definition at line 1112 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Pickpocketing()

TC_GAME_API void LoadLootTemplates_Pickpocketing ( )

Definition at line 1141 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Prospecting()

TC_GAME_API void LoadLootTemplates_Prospecting ( )

Definition at line 1178 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Reference()

TC_GAME_API void LoadLootTemplates_Reference ( )

Definition at line 1309 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Skinning()

TC_GAME_API void LoadLootTemplates_Skinning ( )

Definition at line 1231 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadLootTemplates_Spell()

TC_GAME_API void LoadLootTemplates_Spell ( )

Definition at line 1268 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ LootTemplates_Creature

TC_GAME_API LootStore LootTemplates_Creature
extern

◆ LootTemplates_Disenchant

TC_GAME_API LootStore LootTemplates_Disenchant
extern

◆ LootTemplates_Fishing

TC_GAME_API LootStore LootTemplates_Fishing
extern

◆ LootTemplates_Gameobject

TC_GAME_API LootStore LootTemplates_Gameobject
extern

◆ LootTemplates_Item

TC_GAME_API LootStore LootTemplates_Item
extern

◆ LootTemplates_Mail

TC_GAME_API LootStore LootTemplates_Mail
extern

◆ LootTemplates_Milling

TC_GAME_API LootStore LootTemplates_Milling
extern

◆ LootTemplates_Pickpocketing

TC_GAME_API LootStore LootTemplates_Pickpocketing
extern

◆ LootTemplates_Prospecting

TC_GAME_API LootStore LootTemplates_Prospecting
extern

◆ LootTemplates_Reference

TC_GAME_API LootStore LootTemplates_Reference
extern

◆ LootTemplates_Skinning

TC_GAME_API LootStore LootTemplates_Skinning
extern

◆ LootTemplates_Spell

TC_GAME_API LootStore LootTemplates_Spell
extern