GameServer
CachePacketQuestDataResponse.h
[詳解]
1 
7 #ifndef __CACHEPACKETQUESTDATARESPONSE_H__
8 #define __CACHEPACKETQUESTDATARESPONSE_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "FlexArray.h"
14 #include "QuestData.h"
15 #include "CacheServerPacketID.h"
16 
17 
22 {
23 
24 public:
25 
32 
34  {
39  };
40 
47 
48 
53  {
54  }
55 
59  CachePacketQuestDataResponse(u32 InClientId, u8 InResult, FlexArray<QuestData> InQuests, u32 InActiveQuestId)
60  {
61  ClientId = InClientId;
62  Result = InResult;
63  Quests = InQuests;
64  ActiveQuestId = InActiveQuestId;
65 
66  }
67 
68 
76  {
78  pStream->Serialize(&Result);
79  Quests.Serialize(pStream);
80  pStream->Serialize(&ActiveQuestId);
81 
82  return true;
83  }
84 };
85 
86 #endif // #ifndef __CACHEPACKETQUESTDATARESPONSE_H__
unsigned char u8
Definition: TypeDefs.h:6
クエストデータレスポンスパケット
Definition: CachePacketQuestDataResponse.h:21
クエストデータパケット
CachePacketQuestDataResponse(u32 InClientId, u8 InResult, FlexArray< QuestData > InQuests, u32 InActiveQuestId)
コンストラクタ
Definition: CachePacketQuestDataResponse.h:59
u32 ClientId
Definition: ProcessPacketBase.h:19
u32 ActiveQuestId
アクティブクエストID
Definition: CachePacketQuestDataResponse.h:46
ResultCode
Definition: CachePacketQuestDataResponse.h:33
virtual bool Serialize(s32 *pValue)=0
void Serialize(MemoryStreamInterface *pStream)
Definition: FlexArray.h:143
unsigned int u32
Definition: TypeDefs.h:10
成功
Definition: CachePacketQuestDataResponse.h:36
u8 Result
結果
Definition: CachePacketQuestDataResponse.h:42
クエストデータレスポンスパケット
Definition: CacheServerPacketID.h:77
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
CachePacketQuestDataResponse()
コンストラクタ
Definition: CachePacketQuestDataResponse.h:52
FlexArray< QuestData > Quests
クエストリスト
Definition: CachePacketQuestDataResponse.h:44
エラー
Definition: CachePacketQuestDataResponse.h:38
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketQuestDataResponse.h:75
Definition: MemoryStreamInterface.h:8
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketQuestDataResponse.h:31
Definition: ProcessPacketBase.h:10