msgweaponskill.cpp

来自「网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志」· C++ 代码 · 共 54 行

CPP
54
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?