1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-01 22:07:45 +00:00
sapphire/src/sapphire_zone/ZoneServer.h

47 lines
636 B
C
Raw Normal View History

2018-06-06 16:36:54 +02:00
#ifndef __GAMESERVER_H
#define __GAMESERVER_H
#include <Common.h>
#include <boost/shared_ptr.hpp>
#include <mutex>
#include <map>
namespace Core {
2018-06-06 19:34:05 +02:00
class ZoneServer
2018-06-06 16:36:54 +02:00
{
public:
2018-06-06 19:34:05 +02:00
ZoneServer( const std::string& configPath );
~ZoneServer();
2018-06-06 16:36:54 +02:00
void run( int32_t argc, char* argv[] );
bool loadSettings( int32_t argc, char* argv[] );
void mainLoop();
bool isRunning() const;
void printBanner() const;
private:
uint16_t m_port;
std::string m_ip;
int64_t m_lastDBPingTime;
bool m_bRunning;
std::string m_configPath;
std::map< uint32_t, uint32_t > m_zones;
};
}
#endif