GameServer
CachePacketItemCountChangeRequest.h
[詳解]
1 
7 #ifndef __CACHEPACKETITEMCOUNTCHANGEREQUEST_H__
8 #define __CACHEPACKETITEMCOUNTCHANGEREQUEST_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  CachePacketItemCountChangeRequest(u32 InClientId, u32 InCharacterId, u32 InItemId, u32 InCount)
52  {
53  ClientId = InClientId;
54  CharacterId = InCharacterId;
55  ItemId = InItemId;
56  Count = InCount;
57 
58  }
59 
60 
68  {
70  pStream->Serialize(&CharacterId);
71  pStream->Serialize(&ItemId);
72  pStream->Serialize(&Count);
73 
74  return true;
75  }
76 };
77 
78 #endif // #ifndef __CACHEPACKETITEMCOUNTCHANGEREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketItemCountChangeRequest.h:67
u32 ClientId
Definition: ProcessPacketBase.h:19
virtual bool Serialize(s32 *pValue)=0
CachePacketItemCountChangeRequest(u32 InClientId, u32 InCharacterId, u32 InItemId, u32 InCount)
コンストラクタ
Definition: CachePacketItemCountChangeRequest.h:51
u32 CharacterId
キャラクタID
Definition: CachePacketItemCountChangeRequest.h:34
CachePacketItemCountChangeRequest()
コンストラクタ
Definition: CachePacketItemCountChangeRequest.h:44
unsigned int u32
Definition: TypeDefs.h:10
u32 ItemId
アイテムID
Definition: CachePacketItemCountChangeRequest.h:36
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
アイテム数変化リクエストパケット
Definition: CachePacketItemCountChangeRequest.h:19
アイテム数変化リクエストパケット
Definition: CacheServerPacketID.h:65
Definition: MemoryStreamInterface.h:8
u32 Count
個数
Definition: CachePacketItemCountChangeRequest.h:38
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketItemCountChangeRequest.h:29
Definition: ProcessPacketBase.h:10