⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msglogin.h

📁 魔域源代码需要的可以学习一下真么这么麻烦啊
💻 H
字号:
// 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(DWORD dwVersion, const char* pszAccount, const char* pszPassword);

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

protected:
	typedef struct {
		MSGHEAD_DEFINE

		DWORD 	dwVersion;
		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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -