GameServer
CachePacketMailRead.h
[詳解]
1 
7 #ifndef __CACHEPACKETMAILREAD_H__
8 #define __CACHEPACKETMAILREAD_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::CacheMailRead; }
30 
31 
32 
35 
36 
41  {
42  }
43 
47  CachePacketMailRead(u32 InClientId, u32 InId)
48  {
49  ClientId = InClientId;
50  Id = InId;
51 
52  }
53 
54 
62  {
64  pStream->Serialize(&Id);
65 
66  return true;
67  }
68 };
69 
70 #endif // #ifndef __CACHEPACKETMAILREAD_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 ClientId
Definition: ProcessPacketBase.h:19
CachePacketMailRead()
コンストラクタ
Definition: CachePacketMailRead.h:40
virtual bool Serialize(s32 *pValue)=0
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketMailRead.h:29
unsigned int u32
Definition: TypeDefs.h:10
u32 Id
ID
Definition: CachePacketMailRead.h:34
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketMailRead.h:61
CachePacketMailRead(u32 InClientId, u32 InId)
コンストラクタ
Definition: CachePacketMailRead.h:47
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
メール開封パケット
Definition: CachePacketMailRead.h:19
Definition: MemoryStreamInterface.h:8
メール開封パケット
Definition: CacheServerPacketID.h:93
Definition: ProcessPacketBase.h:10