TrinityCore
Guild::EventLogEntry Class Reference
+ Inheritance diagram for Guild::EventLogEntry:

Public Member Functions

 EventLogEntry (ObjectGuid::LowType guildId, uint32 guid, GuildEventLogTypes eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank)
 
 EventLogEntry (ObjectGuid::LowType guildId, uint32 guid, time_t timestamp, GuildEventLogTypes eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank)
 
 ~EventLogEntry ()
 
void SaveToDB (CharacterDatabaseTransaction trans) const override
 
void WritePacket (WorldPackets::Guild::GuildEventLogQueryResults &packet) const
 
- Public Member Functions inherited from Guild::LogEntry
 LogEntry (ObjectGuid::LowType guildId, uint32 guid)
 
 LogEntry (ObjectGuid::LowType guildId, uint32 guid, time_t timestamp)
 
virtual ~LogEntry ()
 
uint32 GetGUID () const
 
time_t GetTimestamp () const
 
virtual void SaveToDB (CharacterDatabaseTransaction trans) const =0
 

Private Attributes

GuildEventLogTypes m_eventType
 
ObjectGuid::LowType m_playerGuid1
 
ObjectGuid::LowType m_playerGuid2
 
uint8 m_newRank
 

Additional Inherited Members

- Protected Attributes inherited from Guild::LogEntry
ObjectGuid::LowType m_guildId
 
uint32 m_guid
 
time_t m_timestamp
 

Detailed Description

Definition at line 444 of file Guild.h.

Constructor & Destructor Documentation

◆ EventLogEntry() [1/2]

Guild::EventLogEntry::EventLogEntry ( ObjectGuid::LowType  guildId,
uint32  guid,
GuildEventLogTypes  eventType,
ObjectGuid::LowType  playerGuid1,
ObjectGuid::LowType  playerGuid2,
uint8  newRank 
)
inline

Definition at line 447 of file Guild.h.

◆ EventLogEntry() [2/2]

Guild::EventLogEntry::EventLogEntry ( ObjectGuid::LowType  guildId,
uint32  guid,
time_t  timestamp,
GuildEventLogTypes  eventType,
ObjectGuid::LowType  playerGuid1,
ObjectGuid::LowType  playerGuid2,
uint8  newRank 
)
inline

Definition at line 450 of file Guild.h.

◆ ~EventLogEntry()

Guild::EventLogEntry::~EventLogEntry ( )
inline

Definition at line 453 of file Guild.h.

Member Function Documentation

◆ SaveToDB()

void Guild::EventLogEntry::SaveToDB ( CharacterDatabaseTransaction  trans) const
overridevirtual

Implements Guild::LogEntry.

Definition at line 126 of file Guild.cpp.

+ Here is the call graph for this function:

◆ WritePacket()

void Guild::EventLogEntry::WritePacket ( WorldPackets::Guild::GuildEventLogQueryResults packet) const

Definition at line 145 of file Guild.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_eventType

GuildEventLogTypes Guild::EventLogEntry::m_eventType
private

Definition at line 459 of file Guild.h.

◆ m_newRank

uint8 Guild::EventLogEntry::m_newRank
private

Definition at line 462 of file Guild.h.

◆ m_playerGuid1

ObjectGuid::LowType Guild::EventLogEntry::m_playerGuid1
private

Definition at line 460 of file Guild.h.

◆ m_playerGuid2

ObjectGuid::LowType Guild::EventLogEntry::m_playerGuid2
private

Definition at line 461 of file Guild.h.


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