⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serversessionfactory.h

📁 奇迹世界 部分源代码奇迹世界 部分源代码奇迹世界 部分源代码
💻 H
字号:
#ifndef _SERVER_SESSION_FACTORY_H_
#define _SERVER_SESSION_FACTORY_H_

#include <MemoryPoolFactory.h>
#include <Singleton.h>
#include <const.h>

using namespace util;

class ServerSession;
class TempServerSession;
class BattleServerSession;
class FieldServerSession;
class GameDBProxySession;
class AccountDBProxySession;
class AgentServerSession;
class WorldServerSession;
class OpServerSession;
class GuildServerSession;

class ServerSessionFactory : public Singleton<ServerSessionFactory>
{
public:
	ServerSessionFactory();
	~ServerSessionFactory();

	ServerSession*								AllocServerSession( eSERVER_TYPE eServerType );
	VOID										FreeServerSession( ServerSession * pServerSession );

private:
	CMemoryPoolFactory<TempServerSession>		*m_pTempServerPool;
	CMemoryPoolFactory<BattleServerSession>		*m_pBattleServerPool;
	CMemoryPoolFactory<FieldServerSession>		*m_pFieldServerPool;
	CMemoryPoolFactory<GameDBProxySession>		*m_pGameDBProxyPool;	
	CMemoryPoolFactory<AccountDBProxySession>	*m_pAccountDBProxyPool;	
	CMemoryPoolFactory<AgentServerSession>		*m_pAgentServerPool;	
	CMemoryPoolFactory<WorldServerSession>		*m_pWorldServerPool;	
	CMemoryPoolFactory<OpServerSession>			*m_pOpServerPool;	
	CMemoryPoolFactory<GuildServerSession>		*m_pGuildServerPool;
};


#endif // __SERVER_SESSION_FACTORY_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -