📄 msgweaponskill.cpp
字号:
// MsgWeaponSkill.cpp: implementation of the CMsgWeaponSkill class.
//
//////////////////////////////////////////////////////////////////////
#include "AllMsg.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMsgWeaponSkill::CMsgWeaponSkill()
{
Init();
m_pInfo =(MSG_Info *)m_bufMsg;
}
CMsgWeaponSkill::~CMsgWeaponSkill()
{
}
//////////////////////////////////////////////////////////////////////
BOOL CMsgWeaponSkill::Create(char* pMsgBuf, DWORD dwSize)
{
if (!CNetMsg::Create(pMsgBuf, dwSize))
return false;
if(_MSG_WEAPONSKILL != this->GetType())
return false;
return true;
}
//////////////////////////////////////////////////////////////////////
BOOL CMsgWeaponSkill::Create(int nType, int nLevel, int nExp)
{
// init
this->Init();
// fill info now
m_unMsgSize = sizeof(MSG_Info);
m_unMsgType = _MSG_WEAPONSKILL;
m_pInfo->unType = nType;
m_pInfo->usLevel = nLevel;
m_pInfo->unExp = nExp;
return true;
}
//////////////////////////////////////////////////////////////////////
void CMsgWeaponSkill::Process(void *pInfo)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -