![]() |
TrinityCore
|
#include <LootItemStorage.h>
Public Types | |
| typedef std::unordered_multimap< uint32, StoredLootItem > | StoredLootItemContainer |
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 |
Definition at line 49 of file LootItemStorage.h.
| typedef std::unordered_multimap<uint32 , StoredLootItem> StoredLootContainer::StoredLootItemContainer |
Definition at line 52 of file LootItemStorage.h.
|
inlineexplicit |
Definition at line 54 of file LootItemStorage.h.
| void StoredLootContainer::AddLootItem | ( | LootItem const & | lootItem, |
| CharacterDatabaseTransaction | trans | ||
| ) |
Definition at line 289 of file LootItemStorage.cpp.
References _containerId, _lootItems, CHAR_INS_ITEMCONTAINER_ITEMS, CharacterDatabase, LootItem::count, LootItem::follow_loot_rules, LootItem::freeforall, LootItem::is_blocked, LootItem::is_counted, LootItem::is_underthreshold, LootItem::itemid, LootItem::itemIndex, LootItem::needs_quest, LootItem::randomPropertyId, LootItem::randomPropertySeed, PreparedStatementBase::setBool(), PreparedStatementBase::setInt32(), and PreparedStatementBase::setUInt32().
Referenced by LootItemStorage::AddNewStoredLoot(), and LootItemStorage::LoadStorageFromDB().
| void StoredLootContainer::AddMoney | ( | uint32 | money, |
| CharacterDatabaseTransaction | trans | ||
| ) |
Definition at line 314 of file LootItemStorage.cpp.
References _containerId, _money, CHAR_DEL_ITEMCONTAINER_MONEY, CHAR_INS_ITEMCONTAINER_MONEY, CharacterDatabase, and PreparedStatementBase::setUInt32().
Referenced by LootItemStorage::AddNewStoredLoot(), and LootItemStorage::LoadStorageFromDB().
|
inline |
Definition at line 62 of file LootItemStorage.h.
References _containerId.
|
inline |
Definition at line 64 of file LootItemStorage.h.
References _lootItems.
Referenced by LootItemStorage::LoadStoredLoot().
|
inline |
Definition at line 63 of file LootItemStorage.h.
References _money.
Referenced by LootItemStorage::LoadStoredLoot().
Definition at line 339 of file LootItemStorage.cpp.
References _containerId, _lootItems, CHAR_DEL_ITEMCONTAINER_ITEM, CharacterDatabase, and PreparedStatementBase::setUInt32().
| void StoredLootContainer::RemoveMoney | ( | ) |
Definition at line 330 of file LootItemStorage.cpp.
References _containerId, _money, CHAR_DEL_ITEMCONTAINER_MONEY, CharacterDatabase, and PreparedStatementBase::setUInt32().
|
private |
Definition at line 68 of file LootItemStorage.h.
Referenced by AddLootItem(), AddMoney(), GetContainer(), RemoveItem(), and RemoveMoney().
|
private |
Definition at line 67 of file LootItemStorage.h.
Referenced by AddLootItem(), GetLootItems(), and RemoveItem().
|
private |
Definition at line 69 of file LootItemStorage.h.
Referenced by AddMoney(), GetMoney(), and RemoveMoney().