GameServer
WordCheckPacketChatResult.h
[詳解]
1 
7 #ifndef __WORDCHECKPACKETCHATRESULT_H__
8 #define __WORDCHECKPACKETCHATRESULT_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  WordCheckPacketChatResult(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 __WORDCHECKPACKETCHATRESULT_H__
unsigned char u8
Definition: TypeDefs.h:6
virtual u8 GetPacketID() const
パケットID取得.
Definition: WordCheckPacketChatResult.h:29
WordCheckPacketChatResult()
コンストラクタ
Definition: WordCheckPacketChatResult.h:42
std::string Message
メッセージ
Definition: WordCheckPacketChatResult.h:36
ワードチェック結果パケット
Definition: WordCheckPacketChatResult.h:19
u8 Type
タイプ
Definition: WordCheckPacketChatResult.h:34
u32 ClientId
Definition: ProcessPacketBase.h:19
ワードチェック結果パケット
Definition: WordCheckServerPacketID.h:27
virtual bool Serialize(s32 *pValue)=0
WordCheckPacketChatResult(u32 InClientId, u8 InType, std::string InMessage)
コンストラクタ
Definition: WordCheckPacketChatResult.h:49
unsigned int u32
Definition: TypeDefs.h:10
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: WordCheckPacketChatResult.h:64
Definition: MemoryStreamInterface.h:8
Definition: ProcessPacketBase.h:10