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

#include <LootItemStorage.h>

Public Types

typedef std::unordered_multimap< uint32, StoredLootItem > StoredLootItemContainer
 

Public Member Functions

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

Private Attributes

StoredLootItemContainer _lootItems
 
uint64 const _containerId
 
uint32 _money
 

Detailed Description

Definition at line 54 of file LootItemStorage.h.

Member Typedef Documentation

◆ StoredLootItemContainer

Definition at line 57 of file LootItemStorage.h.

Constructor & Destructor Documentation

◆ StoredLootContainer()

StoredLootContainer::StoredLootContainer ( uint64  containerId)
inlineexplicit

Definition at line 59 of file LootItemStorage.h.

Member Function Documentation

◆ AddLootItem()

◆ AddMoney()

◆ GetContainer()

uint64 StoredLootContainer::GetContainer ( ) const
inline

Definition at line 67 of file LootItemStorage.h.

References _containerId.

◆ GetLootItems()

StoredLootItemContainer const & StoredLootContainer::GetLootItems ( ) const
inline

Definition at line 69 of file LootItemStorage.h.

References _lootItems.

Referenced by LootItemStorage::LoadStoredLoot().

◆ GetMoney()

uint32 StoredLootContainer::GetMoney ( ) const
inline

Definition at line 68 of file LootItemStorage.h.

References _money.

Referenced by LootItemStorage::LoadStoredLoot().

◆ RemoveItem()

◆ RemoveMoney()

void StoredLootContainer::RemoveMoney ( )

Member Data Documentation

◆ _containerId

uint64 const StoredLootContainer::_containerId
private

Definition at line 73 of file LootItemStorage.h.

Referenced by AddLootItem(), AddMoney(), GetContainer(), RemoveItem(), and RemoveMoney().

◆ _lootItems

StoredLootItemContainer StoredLootContainer::_lootItems
private

Definition at line 72 of file LootItemStorage.h.

Referenced by AddLootItem(), GetLootItems(), and RemoveItem().

◆ _money

uint32 StoredLootContainer::_money
private

Definition at line 74 of file LootItemStorage.h.

Referenced by AddMoney(), GetMoney(), and RemoveMoney().


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