GameServer
CachePacketCharacterDataSave.h
[詳解]
1 
7 #ifndef __CACHEPACKETCHARACTERDATASAVE_H__
8 #define __CACHEPACKETCHARACTERDATASAVE_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
30 
31 
32 
42  float LastX;
44  float LastY;
46  float LastZ;
47 
48 
53  {
54  }
55 
59  CachePacketCharacterDataSave(u32 InClientId, u32 InCharacterId, u32 InLevel, s32 InExp, u32 InLastAreaId, float InLastX, float InLastY, float InLastZ)
60  {
61  ClientId = InClientId;
62  CharacterId = InCharacterId;
63  Level = InLevel;
64  Exp = InExp;
65  LastAreaId = InLastAreaId;
66  LastX = InLastX;
67  LastY = InLastY;
68  LastZ = InLastZ;
69 
70  }
71 
72 
80  {
82  pStream->Serialize(&CharacterId);
83  pStream->Serialize(&Level);
84  pStream->Serialize(&Exp);
85  pStream->Serialize(&LastAreaId);
86  pStream->Serialize(&LastX);
87  pStream->Serialize(&LastY);
88  pStream->Serialize(&LastZ);
89 
90  return true;
91  }
92 };
93 
94 #endif // #ifndef __CACHEPACKETCHARACTERDATASAVE_H__
float LastX
最終ログアウトX座標
Definition: CachePacketCharacterDataSave.h:42
unsigned char u8
Definition: TypeDefs.h:6
u32 CharacterId
キャラクタID
Definition: CachePacketCharacterDataSave.h:34
u32 ClientId
Definition: ProcessPacketBase.h:19
キャラクタ保存リクエストパケット
Definition: CacheServerPacketID.h:57
virtual bool Serialize(s32 *pValue)=0
CachePacketCharacterDataSave()
コンストラクタ
Definition: CachePacketCharacterDataSave.h:52
u32 Level
レベル
Definition: CachePacketCharacterDataSave.h:36
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketCharacterDataSave.h:79
CachePacketCharacterDataSave(u32 InClientId, u32 InCharacterId, u32 InLevel, s32 InExp, u32 InLastAreaId, float InLastX, float InLastY, float InLastZ)
コンストラクタ
Definition: CachePacketCharacterDataSave.h:59
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketCharacterDataSave.h:29
float LastZ
最終ログアウトZ座標
Definition: CachePacketCharacterDataSave.h:46
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
u32 LastAreaId
最終ログアウトエリアID
Definition: CachePacketCharacterDataSave.h:40
s32 Exp
経験値
Definition: CachePacketCharacterDataSave.h:38
キャラクタ保存リクエストパケット
Definition: CachePacketCharacterDataSave.h:19
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
Definition: MemoryStreamInterface.h:8
float LastY
最終ログアウトY座標
Definition: CachePacketCharacterDataSave.h:44
Definition: ProcessPacketBase.h:10