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>
41 lines
566 B
C++
41 lines
566 B
C++
#pragma once
|
|
#include "ipoolmgr.h"
|
|
#include "./boost/pool/pool.hpp"
|
|
#include "./boost/pool/object_pool.hpp"
|
|
|
|
namespace CROSSM {
|
|
template <class T>
|
|
class CPoolMgr : public IPoolMgr
|
|
{
|
|
public:
|
|
CPoolMgr(void)
|
|
{
|
|
}
|
|
virtual ~CPoolMgr(void)
|
|
{
|
|
}
|
|
virtual void ReleaseAll()
|
|
{
|
|
}
|
|
virtual void *GetObj()
|
|
{
|
|
T *pObj = m_BoostPool.construct();
|
|
if(pObj == NULL)
|
|
MessageBox(NULL,"tt","tt",MB_OK);
|
|
return pObj;
|
|
}
|
|
virtual void ReleaseObj(void *pObj)
|
|
{
|
|
if(pObj)
|
|
{
|
|
m_BoostPool.destroy((T *)pObj);
|
|
}
|
|
}
|
|
|
|
protected:
|
|
boost::object_pool<T> m_BoostPool;
|
|
|
|
};
|
|
|
|
}
|