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