mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-31 13:37:45 +00:00
46 lines
636 B
C++
46 lines
636 B
C++
#ifndef __GAMESERVER_H
|
|
#define __GAMESERVER_H
|
|
|
|
#include <Common.h>
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
#include <mutex>
|
|
#include <map>
|
|
|
|
namespace Core {
|
|
|
|
class ZoneServer
|
|
{
|
|
public:
|
|
ZoneServer( const std::string& configPath );
|
|
~ZoneServer();
|
|
|
|
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
|
|
|
|
|