GameServer
PacketRemoveBuff.h
[詳解]
1 
7 #ifndef __PACKETREMOVEBUFF_H__
8 #define __PACKETREMOVEBUFF_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::RemoveBuff; }
29 
30 
31 
34 
35 
40  {
41  }
42 
46  PacketRemoveBuff(u8 InBuffType)
47  {
48  BuffType = InBuffType;
49 
50  }
51 
52 
60  {
61  pStream->Serialize(&BuffType);
62 
63  return true;
64  }
65 };
66 
67 #endif // #ifndef __PACKETREMOVEBUFF_H__
unsigned char u8
Definition: TypeDefs.h:6
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketRemoveBuff.h:59
virtual bool Serialize(s32 *pValue)=0
バフ消失パケット
Definition: PacketID.h:41
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketRemoveBuff.h:28
PacketRemoveBuff(u8 InBuffType)
コンストラクタ
Definition: PacketRemoveBuff.h:46
Definition: PacketBase.h:9
PacketRemoveBuff()
コンストラクタ
Definition: PacketRemoveBuff.h:39
Definition: MemoryStreamInterface.h:8
バフ消失パケット
Definition: PacketRemoveBuff.h:18
u8 BuffType
バフタイプ
Definition: PacketRemoveBuff.h:33