1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00
openrw/rwgame/GameBase.hpp

35 lines
607 B
C++
Raw Normal View History

#ifndef RWGAME_GAMEBASE_HPP
#define RWGAME_GAMEBASE_HPP
#include "GameConfig.hpp"
#include "GameWindow.hpp"
#include <core/Logger.hpp>
#include <boost/program_options.hpp>
/**
* @brief Handles basic window and setup
*/
class GameBase {
public:
GameBase(Logger& inlog, int argc, char* argv[]);
virtual ~GameBase() = 0;
GameWindow& getWindow() {
return window;
}
const GameConfig& getConfig() const {
return config;
}
protected:
Logger& log;
2018-05-19 23:55:27 +02:00
GameConfig config{};
GameWindow window{};
boost::program_options::variables_map options{};
};
#endif