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

uint64 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
 
uint64 money
 
uint64 COD
 
uint32 checked
 
MailState state
 

Detailed Description

Definition at line 180 of file Mail.h.

Member Function Documentation

◆ AddItem()

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

◆ HasItems()

bool Mail::HasItems ( ) const
inline

Definition at line 220 of file Mail.h.

References items.

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

◆ RemoveItem()

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

Definition at line 207 of file Mail.h.

References items.

Referenced by WorldSession::HandleMailTakeItem().

Member Data Documentation

◆ body

◆ checked

◆ COD

◆ deliver_time

◆ expire_time

◆ items

◆ mailTemplateId

◆ messageID

◆ messageType

◆ money

◆ receiver

◆ removedItems

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

Definition at line 191 of file Mail.h.

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

◆ sender

◆ state

◆ stationery

◆ subject


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