GameServer
MailData.h
[詳解]
1 
7 #ifndef __MAILDATA_H__
8 #define __MAILDATA_H__
9 
10 #include "PacketBase.h"
12 
13 
17 class MailData
18 {
19 
20 public:
21 
30  {
37  };enum MailFlag
38  {
45  };
46 
50  std::string Subject;
52  std::string Body;
61 
62 
67  {
68  }
69 
73  MailData(u32 InId, std::string InSubject, std::string InBody, u8 InAttachmentType, u32 InAttachmentId, u32 InAttachmentCount, u8 InFlag)
74  {
75  Id = InId;
76  Subject = InSubject;
77  Body = InBody;
78  AttachmentType = InAttachmentType;
79  AttachmentId = InAttachmentId;
80  AttachmentCount = InAttachmentCount;
81  Flag = InFlag;
82 
83  }
84 
85 
93  {
94  pStream->Serialize(&Id);
95  pStream->Serialize(&Subject);
96  pStream->Serialize(&Body);
97  pStream->Serialize(&AttachmentType);
98  pStream->Serialize(&AttachmentId);
99  pStream->Serialize(&AttachmentCount);
100  pStream->Serialize(&Flag);
101 
102  return true;
103  }
104 };
105 
106 #endif // #ifndef __MAILDATA_H__
u32 Id
ID
Definition: MailData.h:48
無し
Definition: MailData.h:32
u8 AttachmentType
添付物タイプ
Definition: MailData.h:54
u32 AttachmentId
添付物ID
Definition: MailData.h:56
unsigned char u8
Definition: TypeDefs.h:6
既読
Definition: MailData.h:42
未読
Definition: MailData.h:40
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: MailData.h:92
アイテム
Definition: MailData.h:34
MailData()
コンストラクタ
Definition: MailData.h:66
AttachmentKind
Definition: MailData.h:29
virtual bool Serialize(s32 *pValue)=0
u8 Flag
フラグ
Definition: MailData.h:60
std::string Subject
件名
Definition: MailData.h:50
unsigned int u32
Definition: TypeDefs.h:10
MailData(u32 InId, std::string InSubject, std::string InBody, u8 InAttachmentType, u32 InAttachmentId, u32 InAttachmentCount, u8 InFlag)
コンストラクタ
Definition: MailData.h:73
std::string Body
本文
Definition: MailData.h:52
ゴールド
Definition: MailData.h:36
MailFlag
Definition: MailData.h:37
添付物受注済み
Definition: MailData.h:44
メールデータパケット
Definition: MailData.h:17
Definition: MemoryStreamInterface.h:8
u32 AttachmentCount
添付物数
Definition: MailData.h:58