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

📄 serversessionfactory.h

📁 奇迹世界data 服务器代码,研究游戏的朋友有帮助
💻 H
字号:
#ifndef __SERVER_SESSION_FACTORY_H__
#define __SERVER_SESSION_FACTORY_H__

#pragma once



#include <MemoryPoolFactory.h>
#include <Singleton.h>
using namespace util;

class GameServerSession;
class TempServerSession;
class MasterServerSession;
class AgentServerSession;
class WorldServerSession;
class ServerSession;
class GuildServerSession;

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

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


private:

	CMemoryPoolFactory<GameServerSession> *			m_pGameServerPool;
	CMemoryPoolFactory<TempServerSession> *			m_pTempServerPool;
	CMemoryPoolFactory<MasterServerSession> *		m_pMasterServerPool;
	CMemoryPoolFactory<AgentServerSession> *		m_pAgentServerPool;
	CMemoryPoolFactory<WorldServerSession> *		m_pWorldServerPool;
	CMemoryPoolFactory<GuildServerSession> *		m_pGuildServerPool;
};


#endif // __SERVER_SESSION_FACTORY_H__

⌨️ 快捷键说明

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