msglogin.h

来自「网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志」· C头文件 代码 · 共 44 行

H
44
字号
// MsgLogin.h: interface for the CMsgLogin class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MSGLOGIN_H__63122645_0BCE_11D5_8D37_0010B13A12DB__INCLUDED_)
#define AFX_MSGLOGIN_H__63122645_0BCE_11D5_8D37_0010B13A12DB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum {
		MSG_LOGIN_REQUEST=0,
		MSG_LOGIN_OK,
		MSG_LOGIN_ERR_VERSION,
		MSG_LOGIN_ERR_DOUBLELOGIN,
};

#include "NetMsg.h"

class CMsgLogin : public CNetMsg
{
public:
	CMsgLogin();
	virtual ~CMsgLogin();

	BOOL	Create(USHORT usVersion, const char* pszAccount, const char* pszPassword);

public:
	BOOL	Create	(char* pbufMsg, DWORD dwMsgSize);
	void	Process	(void *pInfo);

protected:
	typedef struct {
//此处自动填充NPC_ID		DWORD 	usVersion;
		char	szAccount[_MAX_NAMESIZE];
		char	szPassword[_MAX_NAMESIZE];
	}MSG_Info;

	MSG_Info* m_pInfo;
};

#endif // !defined(AFX_MSGLOGIN_H__63122645_0BCE_11D5_8D37_0010B13A12DB__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?