GameServer
PacketSkillList.h
[詳解]
1 
7 #ifndef __PACKETSKILLLIST_H__
8 #define __PACKETSKILLLIST_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::SkillList; }
29 
30 
31 
40 
41 
46  {
47  }
48 
52  PacketSkillList(u32 InSkill1, u32 InSkill2, u32 InSkill3, u32 InSkill4)
53  {
54  Skill1 = InSkill1;
55  Skill2 = InSkill2;
56  Skill3 = InSkill3;
57  Skill4 = InSkill4;
58 
59  }
60 
61 
69  {
70  pStream->Serialize(&Skill1);
71  pStream->Serialize(&Skill2);
72  pStream->Serialize(&Skill3);
73  pStream->Serialize(&Skill4);
74 
75  return true;
76  }
77 };
78 
79 #endif // #ifndef __PACKETSKILLLIST_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 Skill3
スキルID3
Definition: PacketSkillList.h:37
virtual bool Serialize(s32 *pValue)=0
スキルリストパケット
Definition: PacketID.h:205
u32 Skill4
スキルID4
Definition: PacketSkillList.h:39
PacketSkillList(u32 InSkill1, u32 InSkill2, u32 InSkill3, u32 InSkill4)
コンストラクタ
Definition: PacketSkillList.h:52
PacketSkillList()
コンストラクタ
Definition: PacketSkillList.h:45
unsigned int u32
Definition: TypeDefs.h:10
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketSkillList.h:28
u32 Skill1
スキルID1
Definition: PacketSkillList.h:33
u32 Skill2
スキルID2
Definition: PacketSkillList.h:35
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketSkillList.h:68
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8
スキルリストパケット
Definition: PacketSkillList.h:18