TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LootItemStorage Class Reference

#include <LootItemStorage.h>

Public Member Functions

void LoadStorageFromDB ()
 
bool LoadStoredLoot (Item *item, Player *player)
 
void RemoveStoredMoneyForContainer (uint32 containerId)
 
void RemoveStoredLootForContainer (uint32 containerId)
 
void RemoveStoredLootItemForContainer (uint32 containerId, uint32 itemId, uint32 count, uint32 itemIndex)
 
void AddNewStoredLoot (Loot *loot, Player *player)
 

Static Public Member Functions

static LootItemStorageinstance ()
 
static std::shared_mutex * GetLock ()
 

Private Member Functions

 LootItemStorage ()
 
 ~LootItemStorage ()
 

Detailed Description

Definition at line 72 of file LootItemStorage.h.

Constructor & Destructor Documentation

◆ LootItemStorage()

LootItemStorage::LootItemStorage ( )
inlineprivate

Definition at line 86 of file LootItemStorage.h.

◆ ~LootItemStorage()

LootItemStorage::~LootItemStorage ( )
inlineprivate

Definition at line 87 of file LootItemStorage.h.

Member Function Documentation

◆ AddNewStoredLoot()

void LootItemStorage::AddNewStoredLoot ( Loot loot,
Player player 
)

Definition at line 234 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ GetLock()

std::shared_mutex * LootItemStorage::GetLock ( )
static

Definition at line 47 of file LootItemStorage.cpp.

+ Here is the caller graph for this function:

◆ instance()

LootItemStorage * LootItemStorage::instance ( )
static

Definition at line 41 of file LootItemStorage.cpp.

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

◆ LoadStorageFromDB()

void LootItemStorage::LoadStorageFromDB ( )

Definition at line 53 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ LoadStoredLoot()

bool LootItemStorage::LoadStoredLoot ( Item item,
Player player 
)

Definition at line 134 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredLootForContainer()

void LootItemStorage::RemoveStoredLootForContainer ( uint32  containerId)

Definition at line 202 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredLootItemForContainer()

void LootItemStorage::RemoveStoredLootItemForContainer ( uint32  containerId,
uint32  itemId,
uint32  count,
uint32  itemIndex 
)

Definition at line 222 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredMoneyForContainer()

void LootItemStorage::RemoveStoredMoneyForContainer ( uint32  containerId)

Definition at line 190 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: