mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 18:32:44 +01:00
36 lines
628 B
C++
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
|