GameServer
PacketMovePlayer.h
[詳解]
1 
7 #ifndef __PACKETMOVEPLAYER_H__
8 #define __PACKETMOVEPLAYER_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::MovePlayer; }
29 
30 
31 
35  float X;
37  float Y;
39  float Z;
41  float Rotation;
42 
43 
48  {
49  }
50 
54  PacketMovePlayer(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 __PACKETMOVEPLAYER_H__
unsigned char u8
Definition: TypeDefs.h:6
PacketMovePlayer()
コンストラクタ
Definition: PacketMovePlayer.h:47
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketMovePlayer.h:71
Definition: Rotation.h:5
u32 Uuid
UUID
Definition: PacketMovePlayer.h:33
プレイヤー移動パケット
Definition: PacketID.h:157
virtual bool Serialize(s32 *pValue)=0
PacketMovePlayer(u32 InUuid, float InX, float InY, float InZ, float InRotation)
コンストラクタ
Definition: PacketMovePlayer.h:54
unsigned int u32
Definition: TypeDefs.h:10
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketMovePlayer.h:28
float X
X座標
Definition: PacketMovePlayer.h:35
Definition: PacketBase.h:9
プレイヤー移動パケット
Definition: PacketMovePlayer.h:18
Definition: MemoryStreamInterface.h:8
float Z
Z座標
Definition: PacketMovePlayer.h:39
float Rotation
回転
Definition: PacketMovePlayer.h:41
float Y
Y座標
Definition: PacketMovePlayer.h:37