AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
RankInfo () | |
RankInfo (uint32 guildId) | |
RankInfo (uint32 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 | |
uint32 | 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 |
|
inline |
void Guild::RankInfo::CreateMissingTabsIfNeeded | ( | uint8 | ranks, |
CharacterDatabaseTransaction | trans, | ||
bool | logOnCreate = false |
||
) |
References CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GR_GUILDMASTER, LOG_ERROR, PreparedStatementBase::SetData(), GuildBankRightsAndSlots::SetGuildMasterValues(), and GuildBankRightsAndSlots::SetTabId().
Referenced by Guild::_CreateRank(), and Guild::Validate().
|
inline |
References m_bankMoneyPerDay.
References GUILD_BANK_MAX_TABS, and m_bankTabRightsAndSlots.
References GUILD_BANK_MAX_TABS, and m_bankTabRightsAndSlots.
|
inline |
|
inline |
void Guild::RankInfo::LoadFromDB | ( | Field * | fields | ) |
References Field::Get(), GR_GUILDMASTER, GR_RIGHT_ALL, and Guild::m_name.
Referenced by Guild::LoadRankFromDB().
void Guild::RankInfo::SaveToDB | ( | CharacterDatabaseTransaction | trans | ) | const |
References CHAR_INS_GUILD_RANK, CharacterDatabase, Guild::m_name, and PreparedStatementBase::SetData().
Referenced by Guild::_CreateRank().
void Guild::RankInfo::SetBankMoneyPerDay | ( | uint32 | money | ) |
References CHAR_UPD_GUILD_RANK_BANK_MONEY, CharacterDatabase, GR_GUILDMASTER, GUILD_WITHDRAW_MONEY_UNLIMITED, and PreparedStatementBase::SetData().
void Guild::RankInfo::SetBankTabSlotsAndRights | ( | GuildBankRightsAndSlots | rightsAndSlots, |
bool | saveToDB | ||
) |
References CHAR_INS_GUILD_BANK_RIGHT, CharacterDatabase, GuildBankRightsAndSlots::GetRights(), GuildBankRightsAndSlots::GetSlots(), GuildBankRightsAndSlots::GetTabId(), GR_GUILDMASTER, PreparedStatementBase::SetData(), and GuildBankRightsAndSlots::SetGuildMasterValues().
void Guild::RankInfo::SetName | ( | std::string_view | name | ) |
References CHAR_UPD_GUILD_RANK_NAME, CharacterDatabase, Guild::m_name, and PreparedStatementBase::SetData().
void Guild::RankInfo::SetRights | ( | uint32 | rights | ) |
References CHAR_UPD_GUILD_RANK_RIGHTS, CharacterDatabase, GR_GUILDMASTER, GR_RIGHT_ALL, and PreparedStatementBase::SetData().
|
private |
Referenced by GetBankMoneyPerDay().
|
private |
Referenced by GetBankTabRights(), and GetBankTabSlotsPerDay().
|
private |
|
private |
Referenced by GetName().
|
private |
Referenced by GetRights().