📄 serversessionfactory.h
字号:
#ifndef __SERVER_SESSION_FACTORY_H__
#define __SERVER_SESSION_FACTORY_H__
#pragma once
#include <MemoryPoolFactory.h>
#include <Singleton.h>
using namespace util;
class GameDBProxySession;
class FieldServerSession;
class MasterServerSession;
class BattleServerSession;
class TempServerSession;
class AgentServerSession;
class GuildServerSession;
class ServerSession;
class ServerSessionFactory : public Singleton<ServerSessionFactory>
{
public:
ServerSessionFactory();
~ServerSessionFactory();
ServerSession * AllocServerSession( eSERVER_TYPE eServerType );
VOID FreeServerSession( ServerSession * pServerSession );
private:
CMemoryPoolFactory<GameDBProxySession> * m_pGameDBProxyPool;
CMemoryPoolFactory<FieldServerSession> * m_pFieldServerPool;
CMemoryPoolFactory<MasterServerSession> * m_pMasterServerPool;
CMemoryPoolFactory<BattleServerSession> * m_pBattleServerPool;
CMemoryPoolFactory<TempServerSession> * m_pTempServerPool;
CMemoryPoolFactory<AgentServerSession> * m_pAgentServerPool;
CMemoryPoolFactory<GuildServerSession> * m_pGuildServerPool;
};
#endif // __SERVER_SESSION_FACTORY_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -