![]() |
TrinityCore
|
Public Member Functions | |
| RankInfo () | |
| RankInfo (ObjectGuid::LowType guildId) | |
| RankInfo (ObjectGuid::LowType guildId, GuildRankId rankId, GuildRankOrder rankOrder, std::string_view name, uint32 rights, uint32 money) | |
| void | LoadFromDB (Field *fields) |
| void | SaveToDB (CharacterDatabaseTransaction trans) const |
| GuildRankId | GetId () const |
| GuildRankOrder | GetOrder () const |
| void | SetOrder (GuildRankOrder rankOrder) |
| std::string const & | GetName () const |
| void | SetName (std::string_view name) |
| uint32 | GetRights () const |
| void | SetRights (uint32 rights) |
| uint32 | GetBankMoneyPerDay () const |
| void | SetBankMoneyPerDay (uint32 money) |
| int8 | GetBankTabRights (uint8 tabId) const |
| int32 | GetBankTabSlotsPerDay (uint8 tabId) const |
| void | SetBankTabSlotsAndRights (GuildBankRightsAndSlots rightsAndSlots, bool saveToDB) |
| void | CreateMissingTabsIfNeeded (uint8 ranks, CharacterDatabaseTransaction trans, bool logOnCreate=false) |
Private Attributes | |
| ObjectGuid::LowType | m_guildId |
| GuildRankId | m_rankId |
| GuildRankOrder | m_rankOrder |
| std::string | m_name |
| uint32 | m_rights |
| uint32 | m_bankMoneyPerDay |
| std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS > | m_bankTabRightsAndSlots = {} |
|
inline |
|
inline |
| void Guild::RankInfo::CreateMissingTabsIfNeeded | ( | uint8 | ranks, |
| CharacterDatabaseTransaction | trans, | ||
| bool | logOnCreate = false |
||
| ) |
Definition at line 279 of file Guild.cpp.
References AsUnderlyingType(), CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GuildMaster, GuildBankRightsAndSlots::SetGuildMasterValues(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt8(), GuildBankRightsAndSlots::SetTabId(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and TC_LOG_ERROR.
Referenced by Guild::_CreateRank(), and Guild::Validate().
|
inline |
Definition at line 592 of file Guild.h.
References GUILD_WITHDRAW_MONEY_UNLIMITED, and GuildMaster.
Definition at line 599 of file Guild.h.
References GUILD_BANK_MAX_TABS.
Definition at line 604 of file Guild.h.
References GUILD_BANK_MAX_TABS.
|
inline |
Definition at line 581 of file Guild.h.
Referenced by Guild::HandleSetMemberRank(), Guild::HandleShiftRank(), Guild::HandleUpdateMemberRank(), and Guild::Validate().
|
inline |
|
inline |
Definition at line 583 of file Guild.h.
Referenced by Guild::HandleRemoveMember(), Guild::HandleSetMemberRank(), Guild::HandleSetNewGuildMaster(), Guild::HandleShiftRank(), Guild::HandleUpdateMemberRank(), and Guild::MassInviteToEvent().
| void Guild::RankInfo::LoadFromDB | ( | Field * | fields | ) |
Definition at line 256 of file Guild.cpp.
References Field::GetString(), Field::GetUInt32(), GR_RIGHT_ALL, GuildMaster, and Guild::m_name.
Referenced by Guild::LoadRankFromDB().
| void Guild::RankInfo::SaveToDB | ( | CharacterDatabaseTransaction | trans | ) | const |
Definition at line 267 of file Guild.cpp.
References AsUnderlyingType(), CHAR_INS_GUILD_RANK, CharacterDatabase, Guild::m_name, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by Guild::_CreateRank().
| void Guild::RankInfo::SetBankMoneyPerDay | ( | uint32 | money | ) |
Definition at line 335 of file Guild.cpp.
References AsUnderlyingType(), CHAR_UPD_GUILD_RANK_BANK_MONEY, CharacterDatabase, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
| void Guild::RankInfo::SetBankTabSlotsAndRights | ( | GuildBankRightsAndSlots | rightsAndSlots, |
| bool | saveToDB | ||
| ) |
Definition at line 349 of file Guild.cpp.
References AsUnderlyingType(), CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GuildMaster, GuildBankRightsAndSlots::SetGuildMasterValues(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt8(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
| void Guild::RankInfo::SetName | ( | std::string_view | name | ) |
Definition at line 304 of file Guild.cpp.
References AsUnderlyingType(), CHAR_UPD_GUILD_RANK_NAME, CharacterDatabase, Guild::m_name, PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
|
inline |
Definition at line 584 of file Guild.h.
Referenced by Guild::HandleShiftRank().
| void Guild::RankInfo::SetRights | ( | uint32 | rights | ) |
Definition at line 318 of file Guild.cpp.
References AsUnderlyingType(), CHAR_UPD_GUILD_RANK_RIGHTS, CharacterDatabase, GR_RIGHT_ALL, GuildMaster, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
|
private |
|
private |
|
private |
|
private |