📄 msgweaponskill.cpp
字号:
// MsgWeaponSkill.cpp: implementation of the CMsgWeaponSkill class.
//
//////////////////////////////////////////////////////////////////////
#include "MsgWeaponSkill.h"
#include "Hero.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMsgWeaponSkill::CMsgWeaponSkill()
{
Init();
m_pInfo =(MSG_Info *)m_bufMsg;
}
CMsgWeaponSkill::~CMsgWeaponSkill()
{
}
//---------------------------------------------------------------------
BOOL CMsgWeaponSkill::Create(char* pbufMsg, DWORD dwMsgSize)
{
if (!CNetMsg::Create(pbufMsg, dwMsgSize))
return false;
if(_MSG_WEAPONSKILL != this->GetType())
return false;
return true;
}
//---------------------------------------------------------------------
void CMsgWeaponSkill::Process(void* pInfo)
{
#ifdef _MSGDEBUG
::LogMsg(Process CMsgWeaponSkill);
#endif
g_objHero.AddNewWeaponSkill(m_pInfo->unType, m_pInfo->usLevel, m_pInfo->unExp);
::PostCmd(CMD_FLASHWEAPONSKILL);
}
//---------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -