Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/* *********************************************************************
|
|
|
|
* CBaseCacheMgr , CCacheObj
|
|
|
|
* 파일 : BaseCacheMgr.cpp
|
|
* 기능 : Caldron엔진 내부에서 사용되는 모든 CacheMgr들의 어미 class
|
|
* history :
|
|
2004.01.16 wizardbug
|
|
|
|
********************************************************************** */
|
|
|
|
#include "BaseCacheMgr.h"
|
|
#include "SceneManager.h"
|
|
#include "GMMemory.h"
|
|
|
|
namespace Caldron {namespace Base {
|
|
/*template < class T >
|
|
T *CBaseCacheMgr<T>::LoadData(const char *strFileName)
|
|
{
|
|
T *pNode = new T;
|
|
strcpy(pNode->m_strName,strFileName);
|
|
CSceneManager::m_pNewMeshObjectContainer->AddObj(Base::CResourceLoaderObj(strFileName,pNode));
|
|
|
|
unsigned long DataID = GetHashID(strFileName);
|
|
Base::CACHEITER itr = m_CacheTable.find(DataID);
|
|
|
|
if(itr == m_CacheTable.end())
|
|
{
|
|
|
|
Base::CCacheObj *pObj = new Base::CCacheObj(pNode);
|
|
|
|
m_CacheTable.insert(Base::CACHETABLEOBJ(DataID,pObj));
|
|
m_iCachesNum++;
|
|
}
|
|
else
|
|
{// map 안에 똑같은 Hash Index 를 가지는 요소 존재
|
|
|
|
((*itr).second)->Add_Back(pNode);
|
|
}
|
|
|
|
return pNode;
|
|
|
|
}
|
|
*/
|
|
/*
|
|
template < class T >
|
|
unsigned long CBaseCacheMgr<T>::GetHashID(const char *strFileName)
|
|
{
|
|
unsigned long ulHashId = 0;
|
|
|
|
int iLength = (int)strlen(strFileName);
|
|
|
|
for(int i=0;i < iLength; i++) {
|
|
ulHashId += (( i + 1) * strFileName[i]);
|
|
}
|
|
return ulHashId;
|
|
|
|
}
|
|
*/
|
|
}}
|