GameServer
CachePacketLogInRequest.h
[詳解]
1 
7 #ifndef __CACHEPACKETLOGINREQUEST_H__
8 #define __CACHEPACKETLOGINREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
29  virtual u8 GetPacketID() const { return CachePacketID::CacheLogInRequest; }
30 
31 
32 
34  std::string UserCode;
35 
36 
41  {
42  }
43 
47  CachePacketLogInRequest(u32 InClientId, std::string InUserCode)
48  {
49  ClientId = InClientId;
50  UserCode = InUserCode;
51 
52  }
53 
54 
62  {
64  pStream->Serialize(&UserCode);
65 
66  return true;
67  }
68 };
69 
70 #endif // #ifndef __CACHEPACKETLOGINREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
ログインリクエストパケット
Definition: CacheServerPacketID.h:25
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketLogInRequest.h:29
u32 ClientId
Definition: ProcessPacketBase.h:19
CachePacketLogInRequest()
コンストラクタ
Definition: CachePacketLogInRequest.h:40
std::string UserCode
ユーザコード
Definition: CachePacketLogInRequest.h:34
virtual bool Serialize(s32 *pValue)=0
ログインリクエストパケット
Definition: CachePacketLogInRequest.h:19
CachePacketLogInRequest(u32 InClientId, std::string InUserCode)
コンストラクタ
Definition: CachePacketLogInRequest.h:47
unsigned int u32
Definition: TypeDefs.h:10
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
Definition: MemoryStreamInterface.h:8
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketLogInRequest.h:61
Definition: ProcessPacketBase.h:10