TrinityCore
Loading...
Searching...
No Matches
Guild::RankInfo Class Reference

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_TABSm_bankTabRightsAndSlots = {}
 

Detailed Description

Definition at line 465 of file Guild.h.

Constructor & Destructor Documentation

◆ RankInfo() [1/3]

Guild::RankInfo::RankInfo ( )
inline

Definition at line 468 of file Guild.h.

◆ RankInfo() [2/3]

Guild::RankInfo::RankInfo ( ObjectGuid::LowType  guildId)
inline

Definition at line 469 of file Guild.h.

◆ RankInfo() [3/3]

Guild::RankInfo::RankInfo ( ObjectGuid::LowType  guildId,
uint8  rankId,
std::string_view  name,
uint32  rights,
uint32  money 
)
inline

Definition at line 470 of file Guild.h.

Member Function Documentation

◆ CreateMissingTabsIfNeeded()

void Guild::RankInfo::CreateMissingTabsIfNeeded ( uint8  ranks,
CharacterDatabaseTransaction  trans,
bool  logOnCreate = false 
)

Definition at line 277 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBankMoneyPerDay()

int32 Guild::RankInfo::GetBankMoneyPerDay ( ) const
inline

Definition at line 485 of file Guild.h.

◆ GetBankTabRights()

int8 Guild::RankInfo::GetBankTabRights ( uint8  tabId) const
inline

Definition at line 489 of file Guild.h.

◆ GetBankTabSlotsPerDay()

int32 Guild::RankInfo::GetBankTabSlotsPerDay ( uint8  tabId) const
inline

Definition at line 494 of file Guild.h.

◆ GetId()

uint8 Guild::RankInfo::GetId ( ) const
inline

Definition at line 477 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & Guild::RankInfo::GetName ( ) const
inline

Definition at line 479 of file Guild.h.

◆ GetRights()

uint32 Guild::RankInfo::GetRights ( ) const
inline

Definition at line 482 of file Guild.h.

◆ LoadFromDB()

void Guild::RankInfo::LoadFromDB ( Field fields)

Definition at line 256 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveToDB()

void Guild::RankInfo::SaveToDB ( CharacterDatabaseTransaction  trans) const

Definition at line 266 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBankMoneyPerDay()

void Guild::RankInfo::SetBankMoneyPerDay ( uint32  money)

Definition at line 333 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetBankTabSlotsAndRights()

void Guild::RankInfo::SetBankTabSlotsAndRights ( GuildBankRightsAndSlots  rightsAndSlots,
bool  saveToDB 
)

Definition at line 350 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetName()

void Guild::RankInfo::SetName ( std::string_view  name)

Definition at line 302 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetRights()

void Guild::RankInfo::SetRights ( uint32  rights)

Definition at line 316 of file Guild.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_bankMoneyPerDay

uint32 Guild::RankInfo::m_bankMoneyPerDay
private

Definition at line 507 of file Guild.h.

◆ m_bankTabRightsAndSlots

std::array<GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS> Guild::RankInfo::m_bankTabRightsAndSlots = {}
private

Definition at line 508 of file Guild.h.

◆ m_guildId

ObjectGuid::LowType Guild::RankInfo::m_guildId
private

Definition at line 503 of file Guild.h.

◆ m_name

std::string Guild::RankInfo::m_name
private

Definition at line 505 of file Guild.h.

◆ m_rankId

uint8 Guild::RankInfo::m_rankId
private

Definition at line 504 of file Guild.h.

◆ m_rights

uint32 Guild::RankInfo::m_rights
private

Definition at line 506 of file Guild.h.


The documentation for this class was generated from the following files: