-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPacketProcAuth.h
57 lines (49 loc) · 1.49 KB
/
CPacketProcAuth.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef H_CLASS_PACKET_PROC_AUTH___
#define H_CLASS_PACKET_PROC_AUTH___
#include "windows.h"
#include "TCHAR.h"
#include "util.h"
#include "../include/define.h"
#include "../include/types.h"
#include "../common/CPacketQueue.h"
#include "../common/common.h"
#include "CNetworkSession.h"
#include "PacketMaker.h"
#include "CPacketProc.h"
#include "CPacketProcRoom.h"
class CPacketProcAuth: public CPacketProc
{
public:
CPacketProcAuth()
{
p_pPacketProcRoom = NULL;
};
virtual ~CPacketProcAuth()
{
p_pPacketProcRoom = NULL;
};
inline void SetRelatePacketProcRoom(CPacketProcRoom* p){
p_pPacketProcRoom = p;
};
inline E_STATE_GAME_PHASE GetRoomPhase(){
if (!p_pPacketProcRoom)
return GAME_PHASE_INVALID;
return p_pPacketProcRoom->GetGamePhase();
};
// パケット処理
virtual BOOL PacketProc(BYTE *data, ptype_session sess);
virtual BOOL DisconnectSession(ptype_session sess);
protected:
void InitSession(ptype_session sess);
// CNetworkSession *p_pNWSess;
// type_queue m_tQueue; // パケット作る用
BOOL PacketProcConfirm(ptype_session sess, BYTE* data);
BOOL CheckNextHash(ptype_session sess);
BOOL PacketProcRetHash(ptype_session sess, BYTE* data);
BOOL PacketProcRetHashCheck(ptype_session sess, BYTE* data);
BOOL PacketReqFileHash(ptype_session sess, BYTE* data);
BOOL PacketReqFileData(ptype_session sess, BYTE* data);
BOOL PacketSendFileData(ptype_session sess, WCHAR* path, BOOL bCharaScrInfo, int id, int nFileNo, int nDatIndex);
CPacketProcRoom* p_pPacketProcRoom;
};
#endif