TrinityCore
LootItemStorage Class Reference

#include <LootItemStorage.h>

Public Member Functions

void LoadStorageFromDB ()
 
bool LoadStoredLoot (Item *item, Player *player)
 
void RemoveStoredMoneyForContainer (uint64 containerId)
 
void RemoveStoredLootForContainer (uint64 containerId)
 
void RemoveStoredLootItemForContainer (uint64 containerId, uint32 itemId, uint32 count, uint32 itemIndex)
 
void AddNewStoredLoot (uint64 containerId, 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 76 of file LootItemStorage.h.

Constructor & Destructor Documentation

◆ LootItemStorage()

LootItemStorage::LootItemStorage ( )
inlineprivate

Definition at line 90 of file LootItemStorage.h.

◆ ~LootItemStorage()

LootItemStorage::~LootItemStorage ( )
inlineprivate

Definition at line 91 of file LootItemStorage.h.

Member Function Documentation

◆ AddNewStoredLoot()

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

Definition at line 241 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ GetLock()

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

Definition at line 48 of file LootItemStorage.cpp.

+ Here is the caller graph for this function:

◆ instance()

LootItemStorage * LootItemStorage::instance ( )
static

Definition at line 42 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 54 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ LoadStoredLoot()

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

Definition at line 120 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredLootForContainer()

void LootItemStorage::RemoveStoredLootForContainer ( uint64  containerId)

Definition at line 209 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredLootItemForContainer()

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

Definition at line 229 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredMoneyForContainer()

void LootItemStorage::RemoveStoredMoneyForContainer ( uint64  containerId)

Definition at line 197 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

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