AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Mail.h File Reference
#include "Common.h"
#include "DatabaseEnvFwd.h"
#include "ObjectGuid.h"
#include <map>

Go to the source code of this file.

Classes

class  MailSender
 
class  MailReceiver
 
class  MailDraft
 
struct  MailItemInfo
 
struct  Mail
 
struct  ServerMail
 

Macros

#define MAIL_BODY_ITEM_TEMPLATE   9311
 
#define MAX_MAIL_ITEMS   12
 

Typedefs

typedef std::vector< MailItemInfoMailItemInfoVec
 

Enumerations

enum  MailMessageType {
  MAIL_NORMAL = 0 ,
  MAIL_AUCTION = 2 ,
  MAIL_CREATURE = 3 ,
  MAIL_GAMEOBJECT = 4 ,
  MAIL_CALENDAR = 5
}
 
enum  MailCheckMask : uint8 {
  MAIL_CHECK_MASK_NONE = 0x00 ,
  MAIL_CHECK_MASK_READ = 0x01 ,
  MAIL_CHECK_MASK_RETURNED = 0x02 ,
  MAIL_CHECK_MASK_COPIED = 0x04 ,
  MAIL_CHECK_MASK_COD_PAYMENT = 0x08 ,
  MAIL_CHECK_MASK_HAS_BODY = 0x10
}
 
enum  MailStationery {
  MAIL_STATIONERY_TEST = 1 ,
  MAIL_STATIONERY_DEFAULT = 41 ,
  MAIL_STATIONERY_GM = 61 ,
  MAIL_STATIONERY_AUCTION = 62 ,
  MAIL_STATIONERY_VAL = 64 ,
  MAIL_STATIONERY_CHR = 65 ,
  MAIL_STATIONERY_ORP = 67
}
 
enum  MailState {
  MAIL_STATE_UNCHANGED = 1 ,
  MAIL_STATE_CHANGED = 2 ,
  MAIL_STATE_DELETED = 3
}
 
enum  MailShowFlags {
  MAIL_SHOW_UNK0 = 0x0001 ,
  MAIL_SHOW_DELETE = 0x0002 ,
  MAIL_SHOW_AUCTION = 0x0004 ,
  MAIL_SHOW_UNK2 = 0x0008 ,
  MAIL_SHOW_RETURN = 0x0010
}
 

Macro Definition Documentation

◆ MAIL_BODY_ITEM_TEMPLATE

#define MAIL_BODY_ITEM_TEMPLATE   9311

◆ MAX_MAIL_ITEMS

#define MAX_MAIL_ITEMS   12

Typedef Documentation

◆ MailItemInfoVec

typedef std::vector<MailItemInfo> MailItemInfoVec

Enumeration Type Documentation

◆ MailCheckMask

Enumerator
MAIL_CHECK_MASK_NONE 
MAIL_CHECK_MASK_READ 
MAIL_CHECK_MASK_RETURNED 
MAIL_CHECK_MASK_COPIED 

This mail was returned. Do not allow returning mail back again.

MAIL_CHECK_MASK_COD_PAYMENT 

This mail was copied. Do not allow making a copy of items in mail.

MAIL_CHECK_MASK_HAS_BODY 
45{
52};
@ MAIL_CHECK_MASK_HAS_BODY
Definition: Mail.h:51
@ MAIL_CHECK_MASK_READ
Definition: Mail.h:47
@ MAIL_CHECK_MASK_COD_PAYMENT
This mail was copied. Do not allow making a copy of items in mail.
Definition: Mail.h:50
@ MAIL_CHECK_MASK_RETURNED
Definition: Mail.h:48
@ MAIL_CHECK_MASK_NONE
Definition: Mail.h:46
@ MAIL_CHECK_MASK_COPIED
This mail was returned. Do not allow returning mail back again.
Definition: Mail.h:49

◆ MailMessageType

Enumerator
MAIL_NORMAL 
MAIL_AUCTION 
MAIL_CREATURE 
MAIL_GAMEOBJECT 
MAIL_CALENDAR 
36{
37 MAIL_NORMAL = 0,
38 MAIL_AUCTION = 2,
39 MAIL_CREATURE = 3, // client send CMSG_CREATURE_QUERY on this mailmessagetype
40 MAIL_GAMEOBJECT = 4, // client send CMSG_GAMEOBJECT_QUERY on this mailmessagetype
42};
@ MAIL_AUCTION
Definition: Mail.h:38
@ MAIL_GAMEOBJECT
Definition: Mail.h:40
@ MAIL_CREATURE
Definition: Mail.h:39
@ MAIL_CALENDAR
Definition: Mail.h:41
@ MAIL_NORMAL
Definition: Mail.h:37

◆ MailShowFlags

Enumerator
MAIL_SHOW_UNK0 
MAIL_SHOW_DELETE 
MAIL_SHOW_AUCTION 
MAIL_SHOW_UNK2 
MAIL_SHOW_RETURN 
74{
75 MAIL_SHOW_UNK0 = 0x0001,
76 MAIL_SHOW_DELETE = 0x0002, // forced show delete button instead return button
77 MAIL_SHOW_AUCTION = 0x0004, // from old comment
78 MAIL_SHOW_UNK2 = 0x0008, // unknown, COD will be shown even without that flag
79 MAIL_SHOW_RETURN = 0x0010,
80};
@ MAIL_SHOW_UNK2
Definition: Mail.h:78
@ MAIL_SHOW_UNK0
Definition: Mail.h:75
@ MAIL_SHOW_DELETE
Definition: Mail.h:76
@ MAIL_SHOW_RETURN
Definition: Mail.h:79
@ MAIL_SHOW_AUCTION
Definition: Mail.h:77

◆ MailState

enum MailState
Enumerator
MAIL_STATE_UNCHANGED 
MAIL_STATE_CHANGED 
MAIL_STATE_DELETED 
67{
71};
@ MAIL_STATE_DELETED
Definition: Mail.h:70
@ MAIL_STATE_CHANGED
Definition: Mail.h:69
@ MAIL_STATE_UNCHANGED
Definition: Mail.h:68

◆ MailStationery

Enumerator
MAIL_STATIONERY_TEST 
MAIL_STATIONERY_DEFAULT 
MAIL_STATIONERY_GM 
MAIL_STATIONERY_AUCTION 
MAIL_STATIONERY_VAL 
MAIL_STATIONERY_CHR 
MAIL_STATIONERY_ORP 
56{
61 MAIL_STATIONERY_VAL = 64, // Valentine
62 MAIL_STATIONERY_CHR = 65, // Christmas
63 MAIL_STATIONERY_ORP = 67, // Orphan
64};
@ MAIL_STATIONERY_TEST
Definition: Mail.h:57
@ MAIL_STATIONERY_GM
Definition: Mail.h:59
@ MAIL_STATIONERY_CHR
Definition: Mail.h:62
@ MAIL_STATIONERY_ORP
Definition: Mail.h:63
@ MAIL_STATIONERY_DEFAULT
Definition: Mail.h:58
@ MAIL_STATIONERY_VAL
Definition: Mail.h:61
@ MAIL_STATIONERY_AUCTION
Definition: Mail.h:60