Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Mail.h File Reference
#include "Common.h"
#include <map>
Include dependency graph for Mail.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Mail
class  MailDraft
struct  MailItemInfo
class  MailReceiver
class  MailSender

Macros

#define MAIL_BODY_ITEM_TEMPLATE   8383
#define MAX_MAIL_ITEMS   12

Typedefs

typedef std::vector< MailItemInfoMailItemInfoVec

Enumerations

enum  MailCheckMask {
  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  MailMessageType {
  MAIL_NORMAL = 0 , MAIL_AUCTION = 2 , MAIL_CREATURE = 3 , MAIL_GAMEOBJECT = 4 ,
  MAIL_CALENDAR = 5 , MAIL_BLACKMARKET = 6
}
enum  MailShowFlags {
  MAIL_SHOW_UNK0 = 0x0001 , MAIL_SHOW_DELETE = 0x0002 , MAIL_SHOW_AUCTION = 0x0004 , MAIL_SHOW_UNK2 = 0x0008 ,
  MAIL_SHOW_RETURN = 0x0010
}
enum class  MailState { MAIL_STATE_NONE = 0 , MAIL_STATE_UNCHANGED = 1 , MAIL_STATE_CHANGED = 2 , MAIL_STATE_DELETED = 3 }
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
}

Macro Definition Documentation

◆ MAIL_BODY_ITEM_TEMPLATE

#define MAIL_BODY_ITEM_TEMPLATE   8383

Definition at line 19 of file Mail.h.

Referenced by WorldSession::HandleMailCreateTextItem().

◆ MAX_MAIL_ITEMS

Typedef Documentation

◆ MailItemInfoVec

typedef std::vector<MailItemInfo> MailItemInfoVec

Definition at line 153 of file Mail.h.

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 

Definition at line 32 of file Mail.h.

◆ MailMessageType

Enumerator
MAIL_NORMAL 
MAIL_AUCTION 
MAIL_CREATURE 
MAIL_GAMEOBJECT 
MAIL_CALENDAR 
MAIL_BLACKMARKET 

Definition at line 22 of file Mail.h.

◆ MailShowFlags

Enumerator
MAIL_SHOW_UNK0 
MAIL_SHOW_DELETE 
MAIL_SHOW_AUCTION 
MAIL_SHOW_UNK2 
MAIL_SHOW_RETURN 

Definition at line 62 of file Mail.h.

◆ MailState

enum class MailState
strong
Enumerator
MAIL_STATE_NONE 
MAIL_STATE_UNCHANGED 
MAIL_STATE_CHANGED 
MAIL_STATE_DELETED 

Definition at line 54 of file Mail.h.

◆ MailStationery

Enumerator
MAIL_STATIONERY_TEST 
MAIL_STATIONERY_DEFAULT 
MAIL_STATIONERY_GM 
MAIL_STATIONERY_AUCTION 
MAIL_STATIONERY_VAL 
MAIL_STATIONERY_CHR 
MAIL_STATIONERY_ORP 

Definition at line 43 of file Mail.h.