|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| BankTab (uint32 guildId, uint8 tabId) | |
| void | Delete (SQLTransaction &trans, bool removeItemsFromDB=false) |
| std::string const & | GetIcon () const |
| Item * | GetItem (uint8 slotId) const |
| std::string const & | GetName () const |
| std::string const & | GetText () const |
| void | LoadFromDB (Field *fields) |
| bool | LoadItemFromDB (Field *fields) |
| void | SendText (Guild const *guild, WorldSession *session) const |
| void | SetInfo (std::string const &name, std::string const &icon) |
| bool | SetItem (SQLTransaction &trans, uint8 slotId, Item *item) |
| void | SetText (std::string const &text) |
| void | WriteInfoPacket (WorldPacket &data) const |
| void | WritePacket (WorldPacket &data) const |
| bool | WriteSlotPacket (WorldPacket &data, uint8 slotId, bool ignoreEmpty=true) const |
Private Attributes | |
| uint32 | m_guildId |
| std::string | m_icon |
| Item * | m_items [GUILD_BANK_MAX_SLOTS] |
| std::string | m_name |
| uint8 | m_tabId |
| std::string | m_text |
| void Guild::BankTab::Delete | ( | SQLTransaction & | trans, |
| bool | removeItemsFromDB = false ) |
Definition at line 509 of file Guild.cpp.
References GUILD_BANK_MAX_SLOTS, and m_items.
|
inline |
Definition at line 640 of file Guild.h.
References GUILD_BANK_MAX_SLOTS, and m_items.
Referenced by Guild::BankMoveItemData::_StoreItem().
|
inline |
|
inline |
| void Guild::BankTab::LoadFromDB | ( | Field * | fields | ) |
| bool Guild::BankTab::LoadItemFromDB | ( | Field * | fields | ) |
Definition at line 470 of file Guild.cpp.
References Object::AddToWorld(), CHAR_DEL_NONEXISTENT_GUILD_BANK_ITEM, CharacterDatabase, Field::GetUInt32(), Field::GetUInt8(), GUILD_BANK_MAX_SLOTS, Item::LoadFromDB(), m_guildId, m_items, m_tabId, NewItemOrBag(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), SF_LOG_ERROR, and sObjectMgr.
| void Guild::BankTab::SendText | ( | Guild const * | guild, |
| WorldSession * | session ) const |
Definition at line 585 of file Guild.cpp.
References Guild::BroadcastPacket(), ByteBuffer::FlushBits(), WorldSession::GetPlayerInfo(), Guild::Guild(), m_tabId, m_text, WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_GUILD_BANK_QUERY_TEXT_RESULT, ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
| void Guild::BankTab::SetInfo | ( | std::string const & | name, |
| std::string const & | icon ) |
Definition at line 522 of file Guild.cpp.
References CHAR_UPD_GUILD_BANK_TAB_INFO, CharacterDatabase, m_guildId, m_icon, m_name, m_tabId, PreparedStatement::setString(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by Guild::HandleSetBankTabInfo().
| bool Guild::BankTab::SetItem | ( | SQLTransaction & | trans, |
| uint8 | slotId, | ||
| Item * | item ) |
Definition at line 555 of file Guild.cpp.
References CHAR_DEL_GUILD_BANK_ITEM, CHAR_INS_GUILD_BANK_ITEM, CharacterDatabase, Item::FSetState(), Object::GetGUIDLow(), GUILD_BANK_MAX_SLOTS, ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_OWNER, ITEM_NEW, m_guildId, m_items, m_tabId, Item::SaveToDB(), PreparedStatement::setUInt32(), Object::SetUInt64Value(), and PreparedStatement::setUInt8().
Referenced by Guild::BankMoveItemData::_StoreItem().
| void Guild::BankTab::SetText | ( | std::string const & | text | ) |
Definition at line 538 of file Guild.cpp.
References CHAR_UPD_GUILD_BANK_TAB_TEXT, CharacterDatabase, m_guildId, m_tabId, m_text, MAX_GUILD_BANK_TAB_TEXT_LEN, PreparedStatement::setString(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and utf8truncate().
Referenced by Guild::HandleSetBankTabNote().
|
inline |
| void Guild::BankTab::WritePacket | ( | WorldPacket & | data | ) | const |
| bool Guild::BankTab::WriteSlotPacket | ( | WorldPacket & | data, |
| uint8 | slotId, | ||
| bool | ignoreEmpty = true ) const |
|
private |
|
private |
Definition at line 649 of file Guild.h.
Referenced by GetIcon(), LoadFromDB(), SetInfo(), and WriteInfoPacket().
|
private |
|
private |
Definition at line 648 of file Guild.h.
Referenced by GetName(), LoadFromDB(), SetInfo(), and WriteInfoPacket().
|
private |
Definition at line 645 of file Guild.h.
Referenced by BankTab(), LoadItemFromDB(), SendText(), SetInfo(), SetItem(), and SetText().
|
private |
Definition at line 650 of file Guild.h.
Referenced by GetText(), LoadFromDB(), SendText(), and SetText().