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

#include <LootItemStorage.h>

Public Types

typedef std::unordered_multimap< uint32, StoredLootItemStoredLootItemContainer
 

Public Member Functions

 StoredLootContainer (uint32 containerId)
 
void AddLootItem (LootItem const &lootItem, CharacterDatabaseTransaction trans)
 
void AddMoney (uint32 money, CharacterDatabaseTransaction trans)
 
void RemoveMoney ()
 
void RemoveItem (uint32 itemId, uint32 count, uint32 itemIndex)
 
uint32 GetContainer () const
 
uint32 GetMoney () const
 
StoredLootItemContainer const & GetLootItems () const
 

Private Attributes

StoredLootItemContainer _lootItems
 
uint32 const _containerId
 
uint32 _money
 

Detailed Description

Definition at line 49 of file LootItemStorage.h.

Member Typedef Documentation

◆ StoredLootItemContainer

Definition at line 52 of file LootItemStorage.h.

Constructor & Destructor Documentation

◆ StoredLootContainer()

StoredLootContainer::StoredLootContainer ( uint32  containerId)
inlineexplicit

Definition at line 54 of file LootItemStorage.h.

Member Function Documentation

◆ AddLootItem()

void StoredLootContainer::AddLootItem ( LootItem const &  lootItem,
CharacterDatabaseTransaction  trans 
)

Definition at line 289 of file LootItemStorage.cpp.

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

◆ AddMoney()

void StoredLootContainer::AddMoney ( uint32  money,
CharacterDatabaseTransaction  trans 
)

Definition at line 314 of file LootItemStorage.cpp.

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

◆ GetContainer()

uint32 StoredLootContainer::GetContainer ( ) const
inline

Definition at line 62 of file LootItemStorage.h.

◆ GetLootItems()

StoredLootItemContainer const & StoredLootContainer::GetLootItems ( ) const
inline

Definition at line 64 of file LootItemStorage.h.

+ Here is the caller graph for this function:

◆ GetMoney()

uint32 StoredLootContainer::GetMoney ( ) const
inline

Definition at line 63 of file LootItemStorage.h.

+ Here is the caller graph for this function:

◆ RemoveItem()

void StoredLootContainer::RemoveItem ( uint32  itemId,
uint32  count,
uint32  itemIndex 
)

Definition at line 339 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

◆ RemoveMoney()

void StoredLootContainer::RemoveMoney ( )

Definition at line 330 of file LootItemStorage.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _containerId

uint32 const StoredLootContainer::_containerId
private

Definition at line 68 of file LootItemStorage.h.

◆ _lootItems

StoredLootItemContainer StoredLootContainer::_lootItems
private

Definition at line 67 of file LootItemStorage.h.

◆ _money

uint32 StoredLootContainer::_money
private

Definition at line 69 of file LootItemStorage.h.


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