GameServer
NoticeData.h
[詳解]
1 
7 #ifndef __NOTICEDATA_H__
8 #define __NOTICEDATA_H__
9 
10 #include "PacketBase.h"
12 
13 
17 class NoticeData
18 {
19 
20 public:
21 
30  {
33  };
34 
40  std::string CharacterName;
41 
42 
47  {
48  }
49 
53  NoticeData(u8 InType, u32 InCustomerId, std::string InCharacterName)
54  {
55  Type = InType;
56  CustomerId = InCustomerId;
57  CharacterName = InCharacterName;
58 
59  }
60 
61 
69  {
70  pStream->Serialize(&Type);
71  pStream->Serialize(&CustomerId);
72  pStream->Serialize(&CharacterName);
73 
74  return true;
75  }
76 };
77 
78 #endif // #ifndef __NOTICEDATA_H__
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: NoticeData.h:68
unsigned char u8
Definition: TypeDefs.h:6
u8 Type
タイプ
Definition: NoticeData.h:36
NoticeType
Definition: NoticeData.h:29
NoticeData(u8 InType, u32 InCustomerId, std::string InCharacterName)
コンストラクタ
Definition: NoticeData.h:53
virtual bool Serialize(s32 *pValue)=0
unsigned int u32
Definition: TypeDefs.h:10
u32 CustomerId
カスタマID
Definition: NoticeData.h:38
NoticeData()
コンストラクタ
Definition: NoticeData.h:46
通知データパケット
Definition: NoticeData.h:17
Definition: MemoryStreamInterface.h:8
パーティ勧誘
Definition: NoticeData.h:32
std::string CharacterName
キャラクタ名
Definition: NoticeData.h:40