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