AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
BankTab (uint32 guildId, uint8 tabId) | |
void | LoadFromDB (Field *fields) |
bool | LoadItemFromDB (Field *fields) |
void | Delete (CharacterDatabaseTransaction trans, bool removeItemsFromDB=false) |
void | SetInfo (std::string_view name, std::string_view icon) |
void | SetText (std::string_view text) |
void | SendText (const Guild *guild, WorldSession *session) const |
std::string const & | GetName () const |
std::string const & | GetIcon () const |
std::string const & | GetText () const |
Item * | GetItem (uint8 slotId) const |
bool | SetItem (CharacterDatabaseTransaction trans, uint8 slotId, Item *pItem) |
Private Attributes | |
uint32 | m_guildId |
uint8 | m_tabId |
std::array< Item *, GUILD_BANK_MAX_SLOTS > | m_items = {} |
std::string | m_name |
std::string | m_icon |
std::string | m_text |
void Guild::BankTab::Delete | ( | CharacterDatabaseTransaction | trans, |
bool | removeItemsFromDB = false |
||
) |
References GUILD_BANK_MAX_SLOTS.
|
inline |
|
inline |
|
inline |
References m_text.
void Guild::BankTab::LoadFromDB | ( | Field * | fields | ) |
References Field::Get(), and Guild::m_name.
bool Guild::BankTab::LoadItemFromDB | ( | Field * | fields | ) |
References Object::AddToWorld(), CHAR_DEL_NONEXISTENT_GUILD_BANK_ITEM, CharacterDatabase, ObjectGuid::Empty, Field::Get(), GUILD_BANK_MAX_SLOTS, Item::LoadFromDB(), LOG_ERROR, NewItemOrBag(), PreparedStatementBase::SetData(), and sObjectMgr.
void Guild::BankTab::SendText | ( | const Guild * | guild, |
WorldSession * | session | ||
) | const |
References Guild::BroadcastPacket(), WorldSession::GetPlayerInfo(), LOG_DEBUG, WorldSession::SendPacket(), WorldPackets::Guild::GuildBankTextQueryResult::Tab, WorldPackets::Guild::GuildBankTextQueryResult::Text, and WorldPackets::Guild::GuildBankTextQueryResult::Write().
void Guild::BankTab::SetInfo | ( | std::string_view | name, |
std::string_view | icon | ||
) |
References CHAR_UPD_GUILD_BANK_TAB_INFO, CharacterDatabase, Guild::m_name, and PreparedStatementBase::SetData().
Referenced by Guild::HandleSetBankTabInfo().
bool Guild::BankTab::SetItem | ( | CharacterDatabaseTransaction | trans, |
uint8 | slotId, | ||
Item * | pItem | ||
) |
References CHAR_DEL_GUILD_BANK_ITEM, CharacterDatabase, GUILD_BANK_MAX_SLOTS, and PreparedStatementBase::SetData().
Referenced by Guild::BankMoveItemData::_StoreItem().
void Guild::BankTab::SetText | ( | std::string_view | text | ) |
References CHAR_UPD_GUILD_BANK_TAB_TEXT, CharacterDatabase, MAX_GUILD_BANK_TAB_TEXT_LEN, PreparedStatementBase::SetData(), and utf8truncate().
|
private |
|
private |
Referenced by GetIcon().
|
private |
Referenced by GetItem().
|
private |
Referenced by GetName().
|
private |
|
private |
Referenced by GetText().