GameServer
PacketCharacterStatus.h
[詳解]
1 
7 #ifndef __PACKETCHARACTERSTATUS_H__
8 #define __PACKETCHARACTERSTATUS_H__
9 
10 #include "PacketBase.h"
12 #include "PacketID.h"
13 
14 
19 {
20 
21 public:
22 
28  virtual u8 GetPacketID() const { return PacketID::CharacterStatus; }
29 
30 
31 
35  std::string Name;
64 
65 
70  {
71  }
72 
76  PacketCharacterStatus(u32 InUuid, std::string InName, u8 InJob, u32 InLevel, u32 InHp, u32 InMaxHp, u32 InBaseMaxHp, u32 InStr, u32 InDef, u32 InInt, u32 InMnd, u32 InVit, u32 InExp, u32 InGold, u32 InRightEquip, u32 InLeftEquip)
77  {
78  Uuid = InUuid;
79  Name = InName;
80  Job = InJob;
81  Level = InLevel;
82  Hp = InHp;
83  MaxHp = InMaxHp;
84  BaseMaxHp = InBaseMaxHp;
85  Str = InStr;
86  Def = InDef;
87  Int = InInt;
88  Mnd = InMnd;
89  Vit = InVit;
90  Exp = InExp;
91  Gold = InGold;
92  RightEquip = InRightEquip;
93  LeftEquip = InLeftEquip;
94 
95  }
96 
97 
105  {
106  pStream->Serialize(&Uuid);
107  pStream->Serialize(&Name);
108  pStream->Serialize(&Job);
109  pStream->Serialize(&Level);
110  pStream->Serialize(&Hp);
111  pStream->Serialize(&MaxHp);
112  pStream->Serialize(&BaseMaxHp);
113  pStream->Serialize(&Str);
114  pStream->Serialize(&Def);
115  pStream->Serialize(&Int);
116  pStream->Serialize(&Mnd);
117  pStream->Serialize(&Vit);
118  pStream->Serialize(&Exp);
119  pStream->Serialize(&Gold);
120  pStream->Serialize(&RightEquip);
121  pStream->Serialize(&LeftEquip);
122 
123  return true;
124  }
125 };
126 
127 #endif // #ifndef __PACKETCHARACTERSTATUS_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 LeftEquip
左手装備
Definition: PacketCharacterStatus.h:63
u32 Str
STR
Definition: PacketCharacterStatus.h:47
PacketCharacterStatus(u32 InUuid, std::string InName, u8 InJob, u32 InLevel, u32 InHp, u32 InMaxHp, u32 InBaseMaxHp, u32 InStr, u32 InDef, u32 InInt, u32 InMnd, u32 InVit, u32 InExp, u32 InGold, u32 InRightEquip, u32 InLeftEquip)
コンストラクタ
Definition: PacketCharacterStatus.h:76
u32 Mnd
MND
Definition: PacketCharacterStatus.h:53
u32 Exp
経験値
Definition: PacketCharacterStatus.h:57
キャラクタパラメータパケット
Definition: PacketID.h:99
u32 Int
INT
Definition: PacketCharacterStatus.h:51
u32 Gold
ゴールド
Definition: PacketCharacterStatus.h:59
virtual bool Serialize(s32 *pValue)=0
u32 RightEquip
右手装備
Definition: PacketCharacterStatus.h:61
u32 Hp
HP
Definition: PacketCharacterStatus.h:41
std::string Name
名前
Definition: PacketCharacterStatus.h:35
PacketCharacterStatus()
コンストラクタ
Definition: PacketCharacterStatus.h:69
u8 Job
ジョブ
Definition: PacketCharacterStatus.h:37
unsigned int u32
Definition: TypeDefs.h:10
u32 Vit
VIT
Definition: PacketCharacterStatus.h:55
u32 Level
レベル
Definition: PacketCharacterStatus.h:39
キャラクタパラメータパケット
Definition: PacketCharacterStatus.h:18
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: PacketCharacterStatus.h:104
Definition: PacketBase.h:9
u32 MaxHp
最大HP
Definition: PacketCharacterStatus.h:43
Definition: MemoryStreamInterface.h:8
u32 Uuid
UUID
Definition: PacketCharacterStatus.h:33
virtual u8 GetPacketID() const
パケットID取得.
Definition: PacketCharacterStatus.h:28
u32 Def
DEF
Definition: PacketCharacterStatus.h:49
u32 BaseMaxHp
基礎最大HP
Definition: PacketCharacterStatus.h:45