GameServer
CachePacketCreateCharacterRequest.h
[詳解]
1 
7 #ifndef __CACHEPACKETCREATECHARACTERREQUEST_H__
8 #define __CACHEPACKETCREATECHARACTERREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
30 
31 
32 
36  std::string CharacterName;
39 
40 
45  {
46  }
47 
51  CachePacketCreateCharacterRequest(u32 InClientId, u32 InCustomerId, std::string InCharacterName, u8 InJob)
52  {
53  ClientId = InClientId;
54  CustomerId = InCustomerId;
55  CharacterName = InCharacterName;
56  Job = InJob;
57 
58  }
59 
60 
68  {
70  pStream->Serialize(&CustomerId);
71  pStream->Serialize(&CharacterName);
72  pStream->Serialize(&Job);
73 
74  return true;
75  }
76 };
77 
78 #endif // #ifndef __CACHEPACKETCREATECHARACTERREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
u8 Job
ジョブ
Definition: CachePacketCreateCharacterRequest.h:38
u32 ClientId
Definition: ProcessPacketBase.h:19
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketCreateCharacterRequest.h:67
virtual bool Serialize(s32 *pValue)=0
キャラクタ作成リクエストパケット
Definition: CachePacketCreateCharacterRequest.h:19
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketCreateCharacterRequest.h:29
u32 CustomerId
カスタマID
Definition: CachePacketCreateCharacterRequest.h:34
unsigned int u32
Definition: TypeDefs.h:10
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
キャラクタ作成リクエストパケット
Definition: CacheServerPacketID.h:29
Definition: MemoryStreamInterface.h:8
CachePacketCreateCharacterRequest(u32 InClientId, u32 InCustomerId, std::string InCharacterName, u8 InJob)
コンストラクタ
Definition: CachePacketCreateCharacterRequest.h:51
std::string CharacterName
キャラクタ名
Definition: CachePacketCreateCharacterRequest.h:36
Definition: ProcessPacketBase.h:10
CachePacketCreateCharacterRequest()
コンストラクタ
Definition: CachePacketCreateCharacterRequest.h:44