1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +01:00
openrw/rwgame/GameBase.hpp
2019-01-20 20:00:00 +01:00

36 lines
628 B
C++

#ifndef RWGAME_GAMEBASE_HPP
#define RWGAME_GAMEBASE_HPP
#include "GameWindow.hpp"
#include "RWConfig.hpp"
#include <boost/program_options.hpp>
class Logger;
/**
* @brief Handles basic window and setup
*/
class GameBase {
public:
GameBase(Logger& inlog, const std::optional<RWArgConfigLayer> &args);
virtual ~GameBase() = 0;
GameWindow& getWindow() {
return window;
}
const RWConfig& getConfig() const {
return config;
}
protected:
RWConfig buildConfig(const std::optional<RWArgConfigLayer> &args);
Logger& log;
GameWindow window{};
RWConfig config{};
};
#endif