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