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