![]() |
TrinityCore
|
#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 |
Definition at line 54 of file LootItemStorage.h.
| typedef std::unordered_multimap<uint32 , StoredLootItem> StoredLootContainer::StoredLootItemContainer |
Definition at line 57 of file LootItemStorage.h.
|
inlineexplicit |
Definition at line 59 of file LootItemStorage.h.
| void StoredLootContainer::AddLootItem | ( | LootItem const & | lootItem, |
| CharacterDatabaseTransaction | trans | ||
| ) |
Definition at line 298 of file LootItemStorage.cpp.
References _containerId, _lootItems, AsUnderlyingType(), LootItem::BonusListIDs, CHAR_INS_ITEMCONTAINER_ITEMS, CharacterDatabase, LootItem::context, LootItem::count, LootItem::follow_loot_rules, LootItem::freeforall, LootItem::is_blocked, LootItem::is_counted, LootItem::is_underthreshold, LootItem::itemid, LootItem::LootListId, LootItem::needs_quest, LootItem::randomBonusListId, PreparedStatementBase::setBool(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt8(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and LootItem::type.
Referenced by LootItemStorage::AddNewStoredLoot(), and LootItemStorage::LoadStorageFromDB().
| void StoredLootContainer::AddMoney | ( | uint32 | money, |
| CharacterDatabaseTransaction | trans | ||
| ) |
Definition at line 327 of file LootItemStorage.cpp.
References _containerId, _money, CHAR_DEL_ITEMCONTAINER_MONEY, CHAR_INS_ITEMCONTAINER_MONEY, CharacterDatabase, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by LootItemStorage::AddNewStoredLoot(), and LootItemStorage::LoadStorageFromDB().
|
inline |
Definition at line 67 of file LootItemStorage.h.
References _containerId.
|
inline |
Definition at line 69 of file LootItemStorage.h.
References _lootItems.
Referenced by LootItemStorage::LoadStoredLoot().
|
inline |
Definition at line 68 of file LootItemStorage.h.
References _money.
Referenced by LootItemStorage::LoadStoredLoot().
| void StoredLootContainer::RemoveItem | ( | LootItemType | type, |
| uint32 | itemId, | ||
| uint32 | count, | ||
| uint32 | itemIndex | ||
| ) |
Definition at line 352 of file LootItemStorage.cpp.
References _containerId, _lootItems, AsUnderlyingType(), CHAR_DEL_ITEMCONTAINER_ITEM, CharacterDatabase, PreparedStatementBase::setInt8(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
| void StoredLootContainer::RemoveMoney | ( | ) |
Definition at line 343 of file LootItemStorage.cpp.
References _containerId, _money, CHAR_DEL_ITEMCONTAINER_MONEY, CharacterDatabase, and PreparedStatementBase::setUInt64().
|
private |
Definition at line 73 of file LootItemStorage.h.
Referenced by AddLootItem(), AddMoney(), GetContainer(), RemoveItem(), and RemoveMoney().
|
private |
Definition at line 72 of file LootItemStorage.h.
Referenced by AddLootItem(), GetLootItems(), and RemoveItem().
|
private |
Definition at line 74 of file LootItemStorage.h.
Referenced by AddMoney(), GetMoney(), and RemoveMoney().