![]() |
TrinityCore
|
Public Member Functions | |
| RankInfo () | |
| RankInfo (ObjectGuid::LowType guildId) | |
| RankInfo (ObjectGuid::LowType guildId, uint8 rankId, std::string_view name, uint32 rights, uint32 money) | |
| void | LoadFromDB (Field *fields) |
| void | SaveToDB (CharacterDatabaseTransaction trans) const |
| uint8 | GetId () const |
| std::string const & | GetName () const |
| void | SetName (std::string_view name) |
| uint32 | GetRights () const |
| void | SetRights (uint32 rights) |
| int32 | 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 |
| uint8 | m_rankId |
| 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 277 of file Guild.cpp.
References CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GR_GUILDMASTER, GuildBankRightsAndSlots::SetGuildMasterValues(), GuildBankRightsAndSlots::SetTabId(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and TC_LOG_ERROR.
Referenced by Guild::_CreateRank(), and Guild::Validate().
Definition at line 489 of file Guild.h.
References GUILD_BANK_MAX_TABS.
Definition at line 494 of file Guild.h.
References GUILD_BANK_MAX_TABS.
|
inline |
Definition at line 477 of file Guild.h.
Referenced by Guild::Validate().
|
inline |
| void Guild::RankInfo::LoadFromDB | ( | Field * | fields | ) |
Definition at line 256 of file Guild.cpp.
References Field::GetString(), Field::GetUInt32(), Field::GetUInt8(), GR_GUILDMASTER, GR_RIGHT_ALL, and Guild::m_name.
Referenced by Guild::LoadRankFromDB().
| void Guild::RankInfo::SaveToDB | ( | CharacterDatabaseTransaction | trans | ) | const |
Definition at line 266 of file Guild.cpp.
References CHAR_INS_GUILD_RANK, CharacterDatabase, Guild::m_name, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by Guild::_CreateRank().
| void Guild::RankInfo::SetBankMoneyPerDay | ( | uint32 | money | ) |
Definition at line 333 of file Guild.cpp.
References CHAR_UPD_GUILD_RANK_BANK_MONEY, CharacterDatabase, GR_GUILDMASTER, GUILD_WITHDRAW_MONEY_UNLIMITED, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
| void Guild::RankInfo::SetBankTabSlotsAndRights | ( | GuildBankRightsAndSlots | rightsAndSlots, |
| bool | saveToDB | ||
| ) |
Definition at line 350 of file Guild.cpp.
References CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GR_GUILDMASTER, GuildBankRightsAndSlots::SetGuildMasterValues(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
| void Guild::RankInfo::SetName | ( | std::string_view | name | ) |
Definition at line 302 of file Guild.cpp.
References CHAR_UPD_GUILD_RANK_NAME, CharacterDatabase, Guild::m_name, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
| void Guild::RankInfo::SetRights | ( | uint32 | rights | ) |
Definition at line 316 of file Guild.cpp.
References CHAR_UPD_GUILD_RANK_RIGHTS, CharacterDatabase, GR_GUILDMASTER, GR_RIGHT_ALL, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
|
private |
|
private |