GameServer
PacketCreateCharacterRequest.h
[詳解]
1 
7 #ifndef __PACKETCREATECHARACTERREQUEST_H__
8 #define __PACKETCREATECHARACTERREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::CreateCharacterRequest; }
29 
30 
31 
33  std::string CharacterName;
36 
37 
42  {
43  }
44 
48  PacketCreateCharacterRequest(std::string InCharacterName, u8 InJob)
49  {
50  CharacterName = InCharacterName;
51  Job = InJob;
52 
53  }
54 
55 
63  {
64  pStream->Serialize(&CharacterName);
65  pStream->Serialize(&Job);
66 
67  return true;
68  }
69 };
70 
71 #endif // #ifndef __PACKETCREATECHARACTERREQUEST_H__
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketCreateCharacterRequest.h:62
unsigned char u8
Definition: TypeDefs.h:6
キャラクタ作成リクエストパケット
Definition: PacketID.h:95
キャラクタ作成リクエストパケット
Definition: PacketCreateCharacterRequest.h:18
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketCreateCharacterRequest.h:28
virtual bool Serialize(s32 *pValue)=0
std::string CharacterName
キャラクタ名
Definition: PacketCreateCharacterRequest.h:33
PacketCreateCharacterRequest()
コンストラクタ
Definition: PacketCreateCharacterRequest.h:41
PacketCreateCharacterRequest(std::string InCharacterName, u8 InJob)
コンストラクタ
Definition: PacketCreateCharacterRequest.h:48
u8 Job
ジョブ
Definition: PacketCreateCharacterRequest.h:35
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8