📄 msgmapinfo.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 + -