GameServer
CachePacketSaveItemShortcutRequest.h
[詳解]
1 
7 #ifndef __CACHEPACKETSAVEITEMSHORTCUTREQUEST_H__
8 #define __CACHEPACKETSAVEITEMSHORTCUTREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
30 
31 
32 
39 
40 
45  {
46  }
47 
51  CachePacketSaveItemShortcutRequest(u32 InClientId, u32 InCharacterId, u32 InItemId1, u32 InItemId2)
52  {
53  ClientId = InClientId;
54  CharacterId = InCharacterId;
55  ItemId1 = InItemId1;
56  ItemId2 = InItemId2;
57 
58  }
59 
60 
68  {
70  pStream->Serialize(&CharacterId);
71  pStream->Serialize(&ItemId1);
72  pStream->Serialize(&ItemId2);
73 
74  return true;
75  }
76 };
77 
78 #endif // #ifndef __CACHEPACKETSAVEITEMSHORTCUTREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketSaveItemShortcutRequest.h:67
u32 ClientId
Definition: ProcessPacketBase.h:19
virtual bool Serialize(s32 *pValue)=0
CachePacketSaveItemShortcutRequest(u32 InClientId, u32 InCharacterId, u32 InItemId1, u32 InItemId2)
コンストラクタ
Definition: CachePacketSaveItemShortcutRequest.h:51
u32 ItemId1
アイテムID1
Definition: CachePacketSaveItemShortcutRequest.h:36
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketSaveItemShortcutRequest.h:29
u32 CharacterId
キャラクタID
Definition: CachePacketSaveItemShortcutRequest.h:34
unsigned int u32
Definition: TypeDefs.h:10
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
u32 ItemId2
アイテムID2
Definition: CachePacketSaveItemShortcutRequest.h:38
アイテムショートカット保存リクエストパケット
Definition: CacheServerPacketID.h:71
CachePacketSaveItemShortcutRequest()
コンストラクタ
Definition: CachePacketSaveItemShortcutRequest.h:44
Definition: MemoryStreamInterface.h:8
アイテムショートカット保存リクエストパケット
Definition: CachePacketSaveItemShortcutRequest.h:19
Definition: ProcessPacketBase.h:10