GameServer
PacketSellItemRequest.h
[詳解]
1 
7 #ifndef __PACKETSELLITEMREQUEST_H__
8 #define __PACKETSELLITEMREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::SellItemRequest; }
29 
30 
31 
38 
39 
44  {
45  }
46 
50  PacketSellItemRequest(u32 InShopId, u32 InItemId, u32 InCount)
51  {
52  ShopId = InShopId;
53  ItemId = InItemId;
54  Count = InCount;
55 
56  }
57 
58 
66  {
67  pStream->Serialize(&ShopId);
68  pStream->Serialize(&ItemId);
69  pStream->Serialize(&Count);
70 
71  return true;
72  }
73 };
74 
75 #endif // #ifndef __PACKETSELLITEMREQUEST_H__
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketSellItemRequest.h:28
unsigned char u8
Definition: TypeDefs.h:6
アイテム売却要求パケット
Definition: PacketID.h:187
u32 ItemId
アイテムID
Definition: PacketSellItemRequest.h:35
virtual bool Serialize(s32 *pValue)=0
アイテム売却要求パケット
Definition: PacketSellItemRequest.h:18
unsigned int u32
Definition: TypeDefs.h:10
u32 ShopId
ショップID
Definition: PacketSellItemRequest.h:33
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketSellItemRequest.h:65
u32 Count
個数
Definition: PacketSellItemRequest.h:37
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8
PacketSellItemRequest(u32 InShopId, u32 InItemId, u32 InCount)
コンストラクタ
Definition: PacketSellItemRequest.h:50
PacketSellItemRequest()
コンストラクタ
Definition: PacketSellItemRequest.h:43