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

📄 msgmapinfo.cpp

📁 网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志
💻 CPP
字号:
// MsgMapInfo.cpp: implementation of the CMsgMapInfo class.
//
//////////////////////////////////////////////////////////////////////

#include "AllMsg.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMsgMapInfo::CMsgMapInfo()
{
	Init();
	m_pInfo	=(MSG_Info *)m_bufMsg;
}

CMsgMapInfo::~CMsgMapInfo()
{

}

//////////////////////////////////////////////////////////////////////
BOOL CMsgMapInfo::Create(CGameMap* pMap)
{
	IF_NOT (pMap)
		return false;

	// init
	this->Init();

	// fill info now
	m_pInfo->idMap		= pMap->GetID();
	m_pInfo->idDoc		= pMap->GetDocID();
	m_pInfo->dwType		= pMap->GetType();

	m_unMsgType	= _MSG_MAPINFO;
	m_unMsgSize	= sizeof(MSG_Info);

	return true;

}

//////////////////////////////////////////////////////////////////////
BOOL CMsgMapInfo::Create(char* pbufMsg, DWORD dwMsgSize)
{
	if (!CNetMsg::Create(pbufMsg, dwMsgSize))
		return false;

	if(_MSG_MAPINFO != this->GetType())
		return false;

	return true;
}

//////////////////////////////////////////////////////////////////////
void CMsgMapInfo::Process(void* pInfo)
{
}

//////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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