GameServer
PacketSaveSkillListResponse.h
[詳解]
1 
7 #ifndef __PACKETSAVESKILLLISTRESPONSE_H__
8 #define __PACKETSAVESKILLLISTRESPONSE_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::SaveSkillListResponse; }
29 
31  {
36  };
37 
48 
49 
54  {
55  }
56 
60  PacketSaveSkillListResponse(u8 InResult, u32 InSkillId1, u32 InSkillId2, u32 InSkillId3, u32 InSkillId4)
61  {
62  Result = InResult;
63  SkillId1 = InSkillId1;
64  SkillId2 = InSkillId2;
65  SkillId3 = InSkillId3;
66  SkillId4 = InSkillId4;
67 
68  }
69 
70 
78  {
79  pStream->Serialize(&Result);
80  pStream->Serialize(&SkillId1);
81  pStream->Serialize(&SkillId2);
82  pStream->Serialize(&SkillId3);
83  pStream->Serialize(&SkillId4);
84 
85  return true;
86  }
87 };
88 
89 #endif // #ifndef __PACKETSAVESKILLLISTRESPONSE_H__
unsigned char u8
Definition: TypeDefs.h:6
成功
Definition: PacketSaveSkillListResponse.h:33
PacketSaveSkillListResponse()
コンストラクタ
Definition: PacketSaveSkillListResponse.h:53
u32 SkillId4
スキルID4
Definition: PacketSaveSkillListResponse.h:47
ResultCode
Definition: PacketSaveSkillListResponse.h:30
virtual bool Serialize(s32 *pValue)=0
PacketSaveSkillListResponse(u8 InResult, u32 InSkillId1, u32 InSkillId2, u32 InSkillId3, u32 InSkillId4)
コンストラクタ
Definition: PacketSaveSkillListResponse.h:60
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketSaveSkillListResponse.h:77
u32 SkillId3
スキルID3
Definition: PacketSaveSkillListResponse.h:45
u8 Result
結果
Definition: PacketSaveSkillListResponse.h:39
u32 SkillId1
スキルID1
Definition: PacketSaveSkillListResponse.h:41
unsigned int u32
Definition: TypeDefs.h:10
スキルリスト保存レスポンスパケット
Definition: PacketID.h:209
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketSaveSkillListResponse.h:28
Definition: PacketBase.h:9
スキルリスト保存レスポンスパケット
Definition: PacketSaveSkillListResponse.h:18
Definition: MemoryStreamInterface.h:8
u32 SkillId2
スキルID2
Definition: PacketSaveSkillListResponse.h:43
エラー
Definition: PacketSaveSkillListResponse.h:35