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

36 lines
628 B
C++
Raw Normal View History

#ifndef RWGAME_GAMEBASE_HPP
#define RWGAME_GAMEBASE_HPP
2018-12-09 22:43:42 +01:00
#include "GameWindow.hpp"
#include "RWConfig.hpp"
2018-12-09 22:43:42 +01:00
#include <boost/program_options.hpp>
2018-12-09 22:43:42 +01:00
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;
2018-05-19 23:55:27 +02:00
GameWindow window{};
RWConfig config{};
};
#endif