📄 npctype.cpp
字号:
// NpcType.cpp: implementation of the CNpcType class.
//
//////////////////////////////////////////////////////////////////////
#include "NpcType.h"
char szNpcType[] = _TBL_MONSTERTYPE;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CNpcType::CNpcType()
{
SetObjType(OBJ_NPCTYPE);
m_pData = CNpcTypeData::CreateNew();
}
//////////////////////////////////////////////////////////////////////
CNpcType::~CNpcType()
{
if(m_pData)
m_pData->Release();
}
//////////////////////////////////////////////////////////////////////
bool CNpcType::Create(IRecordset* pRes)
{
CHECKF(m_pData);
if(!m_pData->Create(pRes))
return false;
return true;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -