GameServer
ProcessPacketBase.h
[詳解]
1 #ifndef __CACHEPACKETBASE_H__
2 #define __CACHEPACKETBASE_H__
3 
4 #include "PacketBase.h"
6 
11 {
12 
13 public:
14 
15  // 実態を定義するためのダミー
16  virtual u8 GetPacketID() const { return 0; }
17 
18  // クライアントID
20 
21  // シリアライズ
22  virtual bool Serialize(MemoryStreamInterface *pStream)
23  {
24  pStream->Serialize(&ClientId);
25  return true;
26  }
27 
28 private:
29 
30 };
31 
32 #endif // #ifndef __CACHEPACKETBASE_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 ClientId
Definition: ProcessPacketBase.h:19
virtual bool Serialize(s32 *pValue)=0
unsigned int u32
Definition: TypeDefs.h:10
virtual u8 GetPacketID() const
Definition: ProcessPacketBase.h:16
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8
Definition: ProcessPacketBase.h:10