OpenMiner/server/include/core/ServerApplication.hpp

41 lines
834 B
C++

/*
* =====================================================================================
*
* Filename: ServerApplication.hpp
*
* Description:
*
* Created: 09/01/2019 19:37:20
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef SERVERAPPLICATION_HPP_
#define SERVERAPPLICATION_HPP_
#include <gk/core/CoreApplication.hpp>
#include "Registry.hpp"
#include "Server.hpp"
#include "ServerWorld.hpp"
class ServerApplication : public gk::CoreApplication {
public:
ServerApplication(int argc, char **argv);
void init() override;
private:
void mainLoop() override;
Server m_server;
ServerWorld m_world;
Registry m_registry;
int m_port = 4242;
};
#endif // SERVERAPPLICATION_HPP_