GameServer
CachePacketOpenSkillTree.h
[詳解]
1 
7 #ifndef __CACHEPACKETOPENSKILLTREE_H__
8 #define __CACHEPACKETOPENSKILLTREE_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::CacheOpenSkillTree; }
30 
31 
32 
37 
38 
43  {
44  }
45 
49  CachePacketOpenSkillTree(u32 InClientId, u32 InCharacterId, u32 InNodeId)
50  {
51  ClientId = InClientId;
52  CharacterId = InCharacterId;
53  NodeId = InNodeId;
54 
55  }
56 
57 
65  {
67  pStream->Serialize(&CharacterId);
68  pStream->Serialize(&NodeId);
69 
70  return true;
71  }
72 };
73 
74 #endif // #ifndef __CACHEPACKETOPENSKILLTREE_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 ClientId
Definition: ProcessPacketBase.h:19
virtual bool Serialize(s32 *pValue)=0
u32 NodeId
ノードID
Definition: CachePacketOpenSkillTree.h:36
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketOpenSkillTree.h:64
スキルツリー開放パケット
Definition: CacheServerPacketID.h:55
unsigned int u32
Definition: TypeDefs.h:10
CachePacketOpenSkillTree(u32 InClientId, u32 InCharacterId, u32 InNodeId)
コンストラクタ
Definition: CachePacketOpenSkillTree.h:49
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketOpenSkillTree.h:29
Definition: MemoryStreamInterface.h:8
スキルツリー開放パケット
Definition: CachePacketOpenSkillTree.h:19
CachePacketOpenSkillTree()
コンストラクタ
Definition: CachePacketOpenSkillTree.h:42
u32 CharacterId
キャラクタID
Definition: CachePacketOpenSkillTree.h:34
Definition: ProcessPacketBase.h:10