TrinityCore
Loading...
Searching...
No Matches
Mail Struct Reference

#include <Mail.h>

Public Member Functions

void AddItem (ObjectGuid::LowType itemGuidLow, uint32 item_template)
 
bool RemoveItem (ObjectGuid::LowType item_guid)
 
bool HasItems () const
 

Public Attributes

uint32 messageID
 
uint8 messageType
 
uint8 stationery
 
uint16 mailTemplateId
 
ObjectGuid::LowType sender
 
ObjectGuid::LowType receiver
 
std::string subject
 
std::string body
 
std::vector< MailItemInfo > items
 
std::vector< ObjectGuid::LowType > removedItems
 
time_t expire_time
 
time_t deliver_time
 
uint32 money
 
uint32 COD
 
uint32 checked
 
MailState state
 

Detailed Description

Definition at line 166 of file Mail.h.

Member Function Documentation

◆ AddItem()

void Mail::AddItem ( ObjectGuid::LowType  itemGuidLow,
uint32  item_template 
)
inline

Definition at line 185 of file Mail.h.

References MailItemInfo::item_guid, and MailItemInfo::item_template.

Referenced by Player::_LoadMailedItem(), and MailDraft::SendMailTo().

◆ HasItems()

bool Mail::HasItems ( ) const
inline

Definition at line 206 of file Mail.h.

Referenced by Player::_SaveMail(), and WorldSession::HandleMailReturnToSender().

◆ RemoveItem()

bool Mail::RemoveItem ( ObjectGuid::LowType  item_guid)
inline

Definition at line 193 of file Mail.h.

Referenced by WorldSession::HandleMailTakeItem().

Member Data Documentation

◆ body

◆ checked

◆ COD

◆ deliver_time

◆ expire_time

time_t Mail::expire_time

◆ items

◆ mailTemplateId

◆ messageID

uint32 Mail::messageID

◆ messageType

◆ money

◆ receiver

◆ removedItems

std::vector<ObjectGuid::LowType> Mail::removedItems

Definition at line 177 of file Mail.h.

Referenced by Player::_SaveMail(), and WorldSession::HandleMailTakeItem().

◆ sender

◆ state

◆ stationery

uint8 Mail::stationery

Definition at line 170 of file Mail.h.

Referenced by Player::_LoadMail(), and MailDraft::SendMailTo().

◆ subject


The documentation for this struct was generated from the following file: