GameServer
PacketStopAnpan.h
[詳解]
1 
7 #ifndef __PACKETSTOPANPAN_H__
8 #define __PACKETSTOPANPAN_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::StopAnpan; }
29 
30 
31 
35  float X;
37  float Y;
39  float Z;
41  float Rotation;
42 
43 
48  {
49  }
50 
54  PacketStopAnpan(u32 InUuid, float InX, float InY, float InZ, float InRotation)
55  {
56  Uuid = InUuid;
57  X = InX;
58  Y = InY;
59  Z = InZ;
60  Rotation = InRotation;
61 
62  }
63 
64 
72  {
73  pStream->Serialize(&Uuid);
74  pStream->Serialize(&X);
75  pStream->Serialize(&Y);
76  pStream->Serialize(&Z);
77  pStream->Serialize(&Rotation);
78 
79  return true;
80  }
81 };
82 
83 #endif // #ifndef __PACKETSTOPANPAN_H__
unsigned char u8
Definition: TypeDefs.h:6
float X
X座標
Definition: PacketStopAnpan.h:35
アンパン停止パケット
Definition: PacketID.h:33
Definition: Rotation.h:5
float Y
Y座標
Definition: PacketStopAnpan.h:37
virtual bool Serialize(s32 *pValue)=0
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketStopAnpan.h:28
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketStopAnpan.h:71
PacketStopAnpan()
コンストラクタ
Definition: PacketStopAnpan.h:47
unsigned int u32
Definition: TypeDefs.h:10
float Z
Z座標
Definition: PacketStopAnpan.h:39
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8
PacketStopAnpan(u32 InUuid, float InX, float InY, float InZ, float InRotation)
コンストラクタ
Definition: PacketStopAnpan.h:54
float Rotation
回転
Definition: PacketStopAnpan.h:41
アンパン停止パケット
Definition: PacketStopAnpan.h:18
u32 Uuid
UUID
Definition: PacketStopAnpan.h:33