GameServer
CachePacketCharacterDataResult.h
[詳解]
1 
7 #ifndef __CACHEPACKETCHARACTERDATARESULT_H__
8 #define __CACHEPACKETCHARACTERDATARESULT_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
30 
32  {
37  };
38 
44  std::string Name;
62  float LastX;
64  float LastY;
66  float LastZ;
67 
68 
73  {
74  }
75 
79  CachePacketCharacterDataResult(u32 InClientId, u32 InCharacterId, u8 InResult, std::string InName, u8 InJob, u32 InLevel, s32 InExp, u32 InGold, u32 InRightEquip, u32 InLeftEquip, u8 InIsGM, u32 InLastAreaId, float InLastX, float InLastY, float InLastZ)
80  {
81  ClientId = InClientId;
82  CharacterId = InCharacterId;
83  Result = InResult;
84  Name = InName;
85  Job = InJob;
86  Level = InLevel;
87  Exp = InExp;
88  Gold = InGold;
89  RightEquip = InRightEquip;
90  LeftEquip = InLeftEquip;
91  IsGM = InIsGM;
92  LastAreaId = InLastAreaId;
93  LastX = InLastX;
94  LastY = InLastY;
95  LastZ = InLastZ;
96 
97  }
98 
99 
107  {
109  pStream->Serialize(&CharacterId);
110  pStream->Serialize(&Result);
111  pStream->Serialize(&Name);
112  pStream->Serialize(&Job);
113  pStream->Serialize(&Level);
114  pStream->Serialize(&Exp);
115  pStream->Serialize(&Gold);
116  pStream->Serialize(&RightEquip);
117  pStream->Serialize(&LeftEquip);
118  pStream->Serialize(&IsGM);
119  pStream->Serialize(&LastAreaId);
120  pStream->Serialize(&LastX);
121  pStream->Serialize(&LastY);
122  pStream->Serialize(&LastZ);
123 
124  return true;
125  }
126 };
127 
128 #endif // #ifndef __CACHEPACKETCHARACTERDATARESULT_H__
unsigned char u8
Definition: TypeDefs.h:6
成功
Definition: CachePacketCharacterDataResult.h:34
std::string Name
名前
Definition: CachePacketCharacterDataResult.h:44
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketCharacterDataResult.h:106
u32 LastAreaId
最終ログアウトエリアID
Definition: CachePacketCharacterDataResult.h:60
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketCharacterDataResult.h:29
u32 ClientId
Definition: ProcessPacketBase.h:19
CachePacketCharacterDataResult(u32 InClientId, u32 InCharacterId, u8 InResult, std::string InName, u8 InJob, u32 InLevel, s32 InExp, u32 InGold, u32 InRightEquip, u32 InLeftEquip, u8 InIsGM, u32 InLastAreaId, float InLastX, float InLastY, float InLastZ)
コンストラクタ
Definition: CachePacketCharacterDataResult.h:79
ResultCode
Definition: CachePacketCharacterDataResult.h:31
u8 Result
結果
Definition: CachePacketCharacterDataResult.h:42
virtual bool Serialize(s32 *pValue)=0
キャラクタ情報レスポンスパケット
Definition: CachePacketCharacterDataResult.h:19
u32 Level
レベル
Definition: CachePacketCharacterDataResult.h:48
u32 CharacterId
キャラクタID
Definition: CachePacketCharacterDataResult.h:40
CachePacketCharacterDataResult()
コンストラクタ
Definition: CachePacketCharacterDataResult.h:72
エラー
Definition: CachePacketCharacterDataResult.h:36
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
u32 LeftEquip
左手装備
Definition: CachePacketCharacterDataResult.h:56
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
float LastX
最終ログアウトX座標
Definition: CachePacketCharacterDataResult.h:62
u8 Job
ジョブ
Definition: CachePacketCharacterDataResult.h:46
float LastZ
最終ログアウトZ座標
Definition: CachePacketCharacterDataResult.h:66
キャラクタ情報レスポンスパケット
Definition: CacheServerPacketID.h:35
Definition: MemoryStreamInterface.h:8
u8 IsGM
GMか?
Definition: CachePacketCharacterDataResult.h:58
s32 Exp
経験値
Definition: CachePacketCharacterDataResult.h:50
u32 Gold
ゴールド
Definition: CachePacketCharacterDataResult.h:52
float LastY
最終ログアウトY座標
Definition: CachePacketCharacterDataResult.h:64
Definition: ProcessPacketBase.h:10
u32 RightEquip
右手装備
Definition: CachePacketCharacterDataResult.h:54