msgflushexp.cpp
来自「网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志」· C++ 代码 · 共 59 行
CPP
59 行
// MsgFlushExp.cpp: implementation of the CMsgFlushExp class.
//
//////////////////////////////////////////////////////////////////////
#include "AllMsg.h"
#include "mapgroup.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMsgFlushExp::CMsgFlushExp()
{
Init();
m_pInfo =(MSG_Info *)m_bufMsg;
}
CMsgFlushExp::~CMsgFlushExp()
{
}
//////////////////////////////////////////////////////////////////////
BOOL CMsgFlushExp::Create(char* pbufMsg, DWORD dwMsgSize)
{
if (!CNetMsg::Create(pbufMsg, dwMsgSize))
return false;
if(_MSG_FLUSHEXP != this->GetType())
return false;
return true;
}
//////////////////////////////////////////////////////////////////////
BOOL CMsgFlushExp::Create(int nAction, int nType, DWORD dwExp)
{
// param check
// init
this->Init();
// fill info now
m_unMsgSize =sizeof(MSG_Info);
m_unMsgType =_MSG_FLUSHEXP;
m_pInfo->ucAction =nAction;
m_pInfo->usType =nType;
m_pInfo->dwExp =dwExp;
return true;
}
//////////////////////////////////////////////////////////////////////
void CMsgFlushExp::Process(void *pInfo)
{
ASSERT(!"CMsgFlushExp");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?