44 lines
923 B
C++
44 lines
923 B
C++
|
|
#include "StdAfx.h"
|
|||
|
|
#include "GamePropertyManager.h"
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|||
|
|
CGamePropertyManager::CGamePropertyManager()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
CGamePropertyManager::~CGamePropertyManager()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD>
|
|||
|
|
bool CGamePropertyManager::SetGamePropertyInfo(tagPropertyInfo PropertyInfo[], WORD wPropertyCount)
|
|||
|
|
{
|
|||
|
|
//<2F><><EFBFBD>ñ<EFBFBD><C3B1><EFBFBD>
|
|||
|
|
m_PropertyInfoArray.SetSize(wPropertyCount);
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
CopyMemory(m_PropertyInfoArray.GetData(),PropertyInfo,sizeof(tagPropertyInfo)*wPropertyCount);
|
|||
|
|
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD>
|
|||
|
|
tagPropertyInfo * CGamePropertyManager::SearchPropertyItem(WORD wPropertyIndex)
|
|||
|
|
{
|
|||
|
|
//<2F><><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD>
|
|||
|
|
for (INT_PTR i=0;i<m_PropertyInfoArray.GetCount();i++)
|
|||
|
|
{
|
|||
|
|
if (m_PropertyInfoArray[i].wIndex==wPropertyIndex)
|
|||
|
|
{
|
|||
|
|
return &m_PropertyInfoArray[i];
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return NULL;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|