TrinityCore
Loading...
Searching...
No Matches
LootItemStorage Class Reference

#include <LootItemStorage.h>

Public Member Functions

 LootItemStorage (LootItemStorage const &)=delete
 
 LootItemStorage (LootItemStorage &&)=delete
 
LootItemStorageoperator= (LootItemStorage const &)=delete
 
LootItemStorageoperator= (LootItemStorage &&)=delete
 
void LoadStorageFromDB ()
 
bool LoadStoredLoot (Item *item, Player *player)
 
void RemoveStoredMoneyForContainer (uint64 containerId)
 
void RemoveStoredLootForContainer (uint64 containerId)
 
void RemoveStoredLootItemForContainer (uint64 containerId, LootItemType type, 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 ()=default
 
 ~LootItemStorage ()=default
 

Detailed Description

Definition at line 77 of file LootItemStorage.h.

Constructor & Destructor Documentation

◆ LootItemStorage() [1/3]

LootItemStorage::LootItemStorage ( LootItemStorage const &  )
delete

◆ LootItemStorage() [2/3]

LootItemStorage::LootItemStorage ( LootItemStorage &&  )
delete

◆ LootItemStorage() [3/3]

LootItemStorage::LootItemStorage ( )
privatedefault

◆ ~LootItemStorage()

LootItemStorage::~LootItemStorage ( )
privatedefault

Member Function Documentation

◆ AddNewStoredLoot()

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

Definition at line 243 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ GetLock()

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

Definition at line 49 of file LootItemStorage.cpp.

+ Here is the caller graph for this function:

◆ instance()

LootItemStorage * LootItemStorage::instance ( )
static

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

+ Here is the call graph for this function:

◆ LoadStoredLoot()

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

Definition at line 122 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

LootItemStorage & LootItemStorage::operator= ( LootItemStorage &&  )
delete

◆ operator=() [2/2]

LootItemStorage & LootItemStorage::operator= ( LootItemStorage const &  )
delete

◆ RemoveStoredLootForContainer()

void LootItemStorage::RemoveStoredLootForContainer ( uint64  containerId)

Definition at line 211 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredLootItemForContainer()

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

Definition at line 231 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveStoredMoneyForContainer()

void LootItemStorage::RemoveStoredMoneyForContainer ( uint64  containerId)

Definition at line 199 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

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