GameServer
PacketNPCTalkSelection.h
[詳解]
1 
7 #ifndef __PACKETNPCTALKSELECTION_H__
8 #define __PACKETNPCTALKSELECTION_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::NPCTalkSelection; }
29 
30 
31 
34 
35 
40  {
41  }
42 
47  {
48  Index = InIndex;
49 
50  }
51 
52 
60  {
61  pStream->Serialize(&Index);
62 
63  return true;
64  }
65 };
66 
67 #endif // #ifndef __PACKETNPCTALKSELECTION_H__
選択肢を選択パケット
Definition: PacketID.h:117
unsigned char u8
Definition: TypeDefs.h:6
virtual bool Serialize(s32 *pValue)=0
int s32
Definition: TypeDefs.h:9
PacketNPCTalkSelection(s32 InIndex)
コンストラクタ
Definition: PacketNPCTalkSelection.h:46
PacketNPCTalkSelection()
コンストラクタ
Definition: PacketNPCTalkSelection.h:39
Definition: PacketBase.h:9
選択肢を選択パケット
Definition: PacketNPCTalkSelection.h:18
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketNPCTalkSelection.h:59
s32 Index
選択肢インデックス
Definition: PacketNPCTalkSelection.h:33
Definition: MemoryStreamInterface.h:8
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketNPCTalkSelection.h:28