GameServer
PacketBuyItemResult.h
[詳解]
1 
7 #ifndef __PACKETBUYITEMRESULT_H__
8 #define __PACKETBUYITEMRESULT_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::BuyItemResult; }
29 
31  {
42  };
43 
46 
47 
52  {
53  }
54 
59  {
60  Result = InResult;
61 
62  }
63 
64 
72  {
73  pStream->Serialize(&Result);
74 
75  return true;
76  }
77 };
78 
79 #endif // #ifndef __PACKETBUYITEMRESULT_H__
u8 Result
リザルトコード
Definition: PacketBuyItemResult.h:45
無効なアイテム
Definition: PacketBuyItemResult.h:39
無効なショップID
Definition: PacketBuyItemResult.h:35
unsigned char u8
Definition: TypeDefs.h:6
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketBuyItemResult.h:71
PacketBuyItemResult()
コンストラクタ
Definition: PacketBuyItemResult.h:51
成功
Definition: PacketBuyItemResult.h:33
PacketBuyItemResult(u8 InResult)
コンストラクタ
Definition: PacketBuyItemResult.h:58
売られていない
Definition: PacketBuyItemResult.h:37
virtual bool Serialize(s32 *pValue)=0
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketBuyItemResult.h:28
ゴールドが足りない
Definition: PacketBuyItemResult.h:41
ResultCode
Definition: PacketBuyItemResult.h:30
Definition: PacketBase.h:9
アイテム購入結果パケット
Definition: PacketID.h:185
Definition: MemoryStreamInterface.h:8
アイテム購入結果パケット
Definition: PacketBuyItemResult.h:18