GameServer
PacketRotateAnpan.h
[詳解]
1 
7 #ifndef __PACKETROTATEANPAN_H__
8 #define __PACKETROTATEANPAN_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::RotateAnpan; }
29 
30 
31 
35  float Rotation;
38 
39 
44  {
45  }
46 
50  PacketRotateAnpan(u32 InUuid, float InRotation, s32 InRotateMilliSec)
51  {
52  Uuid = InUuid;
53  Rotation = InRotation;
54  RotateMilliSec = InRotateMilliSec;
55 
56  }
57 
58 
66  {
67  pStream->Serialize(&Uuid);
68  pStream->Serialize(&Rotation);
69  pStream->Serialize(&RotateMilliSec);
70 
71  return true;
72  }
73 };
74 
75 #endif // #ifndef __PACKETROTATEANPAN_H__
float Rotation
回転
Definition: PacketRotateAnpan.h:35
unsigned char u8
Definition: TypeDefs.h:6
Definition: Rotation.h:5
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketRotateAnpan.h:65
PacketRotateAnpan()
コンストラクタ
Definition: PacketRotateAnpan.h:43
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketRotateAnpan.h:28
virtual bool Serialize(s32 *pValue)=0
PacketRotateAnpan(u32 InUuid, float InRotation, s32 InRotateMilliSec)
コンストラクタ
Definition: PacketRotateAnpan.h:50
u32 Uuid
UUID
Definition: PacketRotateAnpan.h:33
s32 RotateMilliSec
回転時間(ミリ秒)
Definition: PacketRotateAnpan.h:37
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
アンパン回転パケット
Definition: PacketRotateAnpan.h:18
アンパン回転パケット
Definition: PacketID.h:31
Definition: PacketBase.h:9
Definition: MemoryStreamInterface.h:8