GameServer
AnpanData.h
[詳解]
1 
7 #ifndef __ANPANDATA_H__
8 #define __ANPANDATA_H__
9 
10 #include "PacketBase.h"
12 
13 
17 class AnpanData
18 {
19 
20 public:
21 
31  u32 Uuid;
36  float X;
38  float Y;
40  float Z;
42  float Rotation;
47 
48 
53  {
54  }
55 
59  AnpanData(u32 InUuid, u32 InMasterId, float InX, float InY, float InZ, float InRotation, s32 InHp, s32 InMaxHp)
60  {
61  Uuid = InUuid;
62  MasterId = InMasterId;
63  X = InX;
64  Y = InY;
65  Z = InZ;
66  Rotation = InRotation;
67  Hp = InHp;
68  MaxHp = InMaxHp;
69 
70  }
71 
72 
80  {
81  pStream->Serialize(&Uuid);
82  pStream->Serialize(&MasterId);
83  pStream->Serialize(&X);
84  pStream->Serialize(&Y);
85  pStream->Serialize(&Z);
86  pStream->Serialize(&Rotation);
87  pStream->Serialize(&Hp);
88  pStream->Serialize(&MaxHp);
89 
90  return true;
91  }
92 };
93 
94 #endif // #ifndef __ANPANDATA_H__
AnpanData(u32 InUuid, u32 InMasterId, float InX, float InY, float InZ, float InRotation, s32 InHp, s32 InMaxHp)
コンストラクタ
Definition: AnpanData.h:59
u32 Uuid
UUID
Definition: AnpanData.h:32
Definition: Rotation.h:5
s32 MaxHp
最大HP
Definition: AnpanData.h:46
float Z
Z座標
Definition: AnpanData.h:40
virtual bool Serialize(s32 *pValue)=0
float X
X座標
Definition: AnpanData.h:36
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: AnpanData.h:79
float Y
Y座標
Definition: AnpanData.h:38
AnpanData()
コンストラクタ
Definition: AnpanData.h:52
u32 MasterId
マスタID
Definition: AnpanData.h:34
アンパンデータパケット
Definition: AnpanData.h:17
s32 Hp
HP
Definition: AnpanData.h:44
Definition: MemoryStreamInterface.h:8
float Rotation
回転
Definition: AnpanData.h:42