serversessionfactory.h
来自「奇迹世界 部分源代码奇迹世界 部分源代码奇迹世界 部分源代码」· C头文件 代码 · 共 41 行
H
41 行
#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 MasterServerSession;
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<MasterServerSession> *m_pMasterServerPool;
CMemoryPoolFactory<GuildServerSession> *m_pGuildServerPool;
};
#endif // __SERVER_SESSION_FACTORY_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?