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

📄 msgnpcinfo.h

📁 网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志
💻 H
字号:
// MsgNpcInfo.h: interface for the CMsgNpcInfo class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MSGNPCINFO_H__50F4AAD1_342A_4D6C_A161_33CDE0158D5B__INCLUDED_)
#define AFX_MSGNPCINFO_H__50F4AAD1_342A_4D6C_A161_33CDE0158D5B__INCLUDED_

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


#include "NetMsg.h"
#include "Npc.h"
#include "NetStringPacker.h"


class CNpc;
class CMsgNpcInfo  : public CNetMsg
{
public:
	CMsgNpcInfo();
	virtual ~CMsgNpcInfo();

	BOOL	Create	(CNpc* pNpc);
	BOOL	Create(OBJID id, int nType, int nSort, int nLookType, int nCellX, int nCellY, int nLength, int nFat, const char* pszName=NULL);
public:	
	BOOL			Create		(char* pMsgBuf, DWORD dwSize);
	void			Process		(CGameSocket* pSocket);

protected:
	typedef struct {
		MSGHEAD_DEFINE

		OBJID		id;
		unsigned	short usCellX;
		unsigned	short usCellY;
		USHORT		usLook;					// dir for statuary
		USHORT		usType;					// frame for statuary
		USHORT		usSort;					// pose for statuary
		char		cLength;				// 高矮
		char		cFat;					// 胖瘦
		char		szBuf[1];
	}MSG_Info;

	MSG_Info*	m_pInfo;

private:
	CNetStringPacker	m_StrPacker;
};

#endif // !defined(AFX_MSGNPCINFO_H__50F4AAD1_342A_4D6C_A161_33CDE0158D5B__INCLUDED_)

⌨️ 快捷键说明

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