GameServer
PacketSkillUse.h
[詳解]
1 
7 #ifndef __PACKETSKILLUSE_H__
8 #define __PACKETSKILLUSE_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
18 class PacketSkillUse : public PacketBase
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::SkillUse; }
29 
30 
31 
38 
39 
44  {
45  }
46 
50  PacketSkillUse(u32 InSkillId, u8 InTargetType, u32 InTargetUuid)
51  {
52  SkillId = InSkillId;
53  TargetType = InTargetType;
54  TargetUuid = InTargetUuid;
55 
56  }
57 
58 
66  {
67  pStream->Serialize(&SkillId);
68  pStream->Serialize(&TargetType);
69  pStream->Serialize(&TargetUuid);
70 
71  return true;
72  }
73 };
74 
75 #endif // #ifndef __PACKETSKILLUSE_H__
unsigned char u8
Definition: TypeDefs.h:6
PacketSkillUse()
コンストラクタ
Definition: PacketSkillUse.h:43
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketSkillUse.h:28
スキル使用パケット
Definition: PacketSkillUse.h:18
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketSkillUse.h:65
virtual bool Serialize(s32 *pValue)=0
u32 TargetUuid
ターゲットUUID
Definition: PacketSkillUse.h:37
スキル使用パケット
Definition: PacketID.h:193
unsigned int u32
Definition: TypeDefs.h:10
PacketSkillUse(u32 InSkillId, u8 InTargetType, u32 InTargetUuid)
コンストラクタ
Definition: PacketSkillUse.h:50
u32 SkillId
スキルID
Definition: PacketSkillUse.h:33
Definition: PacketBase.h:9
u8 TargetType
ターゲットタイプ
Definition: PacketSkillUse.h:35
Definition: MemoryStreamInterface.h:8