GameServer
WordCheckPacketChatRequest.h
[詳解]
1 
7 #ifndef __WORDCHECKPACKETCHATREQUEST_H__
8 #define __WORDCHECKPACKETCHATREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
14 
15 
20 {
21 
22 public:
23 
30 
31 
32 
36  std::string Message;
37 
38 
43  {
44  }
45 
49  WordCheckPacketChatRequest(u32 InClientId, u8 InType, std::string InMessage)
50  {
51  ClientId = InClientId;
52  Type = InType;
53  Message = InMessage;
54 
55  }
56 
57 
65  {
67  pStream->Serialize(&Type);
68  pStream->Serialize(&Message);
69 
70  return true;
71  }
72 };
73 
74 #endif // #ifndef __WORDCHECKPACKETCHATREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 ClientId
Definition: ProcessPacketBase.h:19
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: WordCheckPacketChatRequest.h:64
virtual bool Serialize(s32 *pValue)=0
WordCheckPacketChatRequest(u32 InClientId, u8 InType, std::string InMessage)
コンストラクタ
Definition: WordCheckPacketChatRequest.h:49
u8 Type
タイプ
Definition: WordCheckPacketChatRequest.h:34
std::string Message
メッセージ
Definition: WordCheckPacketChatRequest.h:36
ワードチェック要求パケット
Definition: WordCheckServerPacketID.h:25
virtual u8 GetPacketID() const
パケットID取得.
Definition: WordCheckPacketChatRequest.h:29
unsigned int u32
Definition: TypeDefs.h:10
WordCheckPacketChatRequest()
コンストラクタ
Definition: WordCheckPacketChatRequest.h:42
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
ワードチェック要求パケット
Definition: WordCheckPacketChatRequest.h:19
Definition: MemoryStreamInterface.h:8
Definition: ProcessPacketBase.h:10