GameServer
CachePacketScriptFlagSaveRequest.h
[詳解]
1 
7 #ifndef __CACHEPACKETSCRIPTFLAGSAVEREQUEST_H__
8 #define __CACHEPACKETSCRIPTFLAGSAVEREQUEST_H__
9 
10 #include "PacketBase.h"
12 #include "ProcessPacketBase.h"
13 #include "CacheServerPacketID.h"
14 
15 
20 {
21 
22 public:
23 
30 
31 
32 
41 
42 
47  {
48  }
49 
53  CachePacketScriptFlagSaveRequest(u32 InClientId, u32 InCharacterId, u32 InBitField1, u32 InBitField2, u32 InBitField3)
54  {
55  ClientId = InClientId;
56  CharacterId = InCharacterId;
57  BitField1 = InBitField1;
58  BitField2 = InBitField2;
59  BitField3 = InBitField3;
60 
61  }
62 
63 
71  {
73  pStream->Serialize(&CharacterId);
74  pStream->Serialize(&BitField1);
75  pStream->Serialize(&BitField2);
76  pStream->Serialize(&BitField3);
77 
78  return true;
79  }
80 };
81 
82 #endif // #ifndef __CACHEPACKETSCRIPTFLAGSAVEREQUEST_H__
unsigned char u8
Definition: TypeDefs.h:6
u32 BitField1
ビットフィールド1
Definition: CachePacketScriptFlagSaveRequest.h:36
u32 ClientId
Definition: ProcessPacketBase.h:19
virtual bool Serialize(s32 *pValue)=0
CachePacketScriptFlagSaveRequest(u32 InClientId, u32 InCharacterId, u32 InBitField1, u32 InBitField2, u32 InBitField3)
コンストラクタ
Definition: CachePacketScriptFlagSaveRequest.h:53
u32 BitField3
ビットフィールド3
Definition: CachePacketScriptFlagSaveRequest.h:40
virtual u8 GetPacketID() const
パケットID取得.
Definition: CachePacketScriptFlagSaveRequest.h:29
unsigned int u32
Definition: TypeDefs.h:10
CachePacketScriptFlagSaveRequest()
コンストラクタ
Definition: CachePacketScriptFlagSaveRequest.h:46
virtual bool Serialize(MemoryStreamInterface *pStream)
Definition: ProcessPacketBase.h:22
u32 CharacterId
キャラクタID
Definition: CachePacketScriptFlagSaveRequest.h:34
スクリプトフラグ保存リクエストパケット
Definition: CachePacketScriptFlagSaveRequest.h:19
bool Serialize(MemoryStreamInterface *pStream)
シリアライズ
Definition: CachePacketScriptFlagSaveRequest.h:70
Definition: MemoryStreamInterface.h:8
u32 BitField2
ビットフィールド2
Definition: CachePacketScriptFlagSaveRequest.h:38
スクリプトフラグ保存リクエストパケット
Definition: CacheServerPacketID.h:45
Definition: ProcessPacketBase.h:10