Danbias/Code/Game/DanBiasServer/GameServer.h

47 lines
1.1 KiB
C
Raw Normal View History

2013-12-12 09:33:59 +01:00
/////////////////////////////////////////////////////////////////////
// Created by [Dennis Andersen] [2013]
/////////////////////////////////////////////////////////////////////
#ifndef DANBIASSERVER_GAME_SERVER_H
#define DANBIASSERVER_GAME_SERVER_H
#include <vld.h>
#include "Include\DanBiasServerAPI.h"
#include "ServerObjects\Lobby\MainLobby.h"
#include <NetworkServer.h>
#include <NetworkCallbackHelper.h>
namespace DanBias
{
class GameServer :public Oyster::Network::ClientConnectedObject
{
public:
GameServer();
~GameServer();
DanBiasServerReturn Create();
DanBiasServerReturn Run();
DanBiasServerReturn Release();
private:
//static void ClientConnectCallbackFunction(Oyster::Network::NetworkClient& connectedClient);
2013-12-12 12:17:39 +01:00
void ClientConnectCallback(Oyster::Network::NetworkClient client) override;
2013-12-12 09:33:59 +01:00
bool initiated;
bool running;
bool released;
int maxClients;
MainLobby *mainLobby;
Oyster::Network::NetworkServer *server;
private:
struct InitData
{
int port;
int clients;
};
bool LoadIniFile(InitData&);
};
}// End namspace DanBias
#endif // !DANBIASSERVER_DBSERVER_H