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