AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
EmblemInfo Class Reference

#include "Guild.h"

Public Member Functions

 EmblemInfo ()
 
void LoadFromDB (Field *fields)
 
void SaveToDB (uint32 guildId) const
 
void ReadPacket (WorldPackets::Guild::SaveGuildEmblem &packet)
 
uint32 GetStyle () const
 
uint32 GetColor () const
 
uint32 GetBorderStyle () const
 
uint32 GetBorderColor () const
 
uint32 GetBackgroundColor () const
 

Private Attributes

uint32 m_style
 
uint32 m_color
 
uint32 m_borderStyle
 
uint32 m_borderColor
 
uint32 m_backgroundColor
 

Detailed Description

Constructor & Destructor Documentation

◆ EmblemInfo()

EmblemInfo::EmblemInfo ( )
inline
uint32 m_style
Definition Guild.h:254
uint32 m_backgroundColor
Definition Guild.h:258
uint32 m_borderColor
Definition Guild.h:257
uint32 m_borderStyle
Definition Guild.h:256
uint32 m_color
Definition Guild.h:255

Member Function Documentation

◆ GetBackgroundColor()

uint32 EmblemInfo::GetBackgroundColor ( ) const
inline

◆ GetBorderColor()

uint32 EmblemInfo::GetBorderColor ( ) const
inline

◆ GetBorderStyle()

uint32 EmblemInfo::GetBorderStyle ( ) const
inline

◆ GetColor()

uint32 EmblemInfo::GetColor ( ) const
inline

◆ GetStyle()

uint32 EmblemInfo::GetStyle ( ) const
inline

◆ LoadFromDB()

void EmblemInfo::LoadFromDB ( Field fields)
693{
694 m_style = fields[3].Get<uint8>();
695 m_color = fields[4].Get<uint8>();
696 m_borderStyle = fields[5].Get<uint8>();
697 m_borderColor = fields[6].Get<uint8>();
698 m_backgroundColor = fields[7].Get<uint8>();
699}
std::uint8_t uint8
Definition Define.h:109
std::enable_if_t< std::is_arithmetic_v< T >, T > Get() const
Definition Field.h:112

References Field::Get().

Referenced by Guild::LoadFromDB().

◆ ReadPacket()

◆ SaveToDB()

void EmblemInfo::SaveToDB ( uint32  guildId) const
702{
704 stmt->SetData(0, m_style);
705 stmt->SetData(1, m_color);
706 stmt->SetData(2, m_borderStyle);
707 stmt->SetData(3, m_borderColor);
708 stmt->SetData(4, m_backgroundColor);
709 stmt->SetData(5, guildId);
710 CharacterDatabase.Execute(stmt);
711}
@ CHAR_UPD_GUILD_EMBLEM_INFO
Definition CharacterDatabase.h:173
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
Definition DatabaseEnv.cpp:21
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition PreparedStatement.h:77
Definition PreparedStatement.h:157

References CHAR_UPD_GUILD_EMBLEM_INFO, CharacterDatabase, and PreparedStatementBase::SetData().

Referenced by Guild::HandleSetEmblem().

Member Data Documentation

◆ m_backgroundColor

uint32 EmblemInfo::m_backgroundColor
private

Referenced by GetBackgroundColor().

◆ m_borderColor

uint32 EmblemInfo::m_borderColor
private

Referenced by GetBorderColor().

◆ m_borderStyle

uint32 EmblemInfo::m_borderStyle
private

Referenced by GetBorderStyle().

◆ m_color

uint32 EmblemInfo::m_color
private

Referenced by GetColor().

◆ m_style

uint32 EmblemInfo::m_style
private

Referenced by GetStyle().


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