1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00
openrw/rwgame/GameBase.hpp
Anonymous Maarten 55dd0beea0 rwgame: allow configuration files from all places (not only config path)
- add it as an argument to the rwgame executable
- update the tests
2017-11-17 00:50:50 +00:00

34 lines
588 B
C++

#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[]);
~GameBase();
GameWindow& getWindow() {
return window;
}
const GameConfig& getConfig() const {
return config;
}
protected:
Logger& log;
GameConfig config;
GameWindow window;
boost::program_options::variables_map options;
};
#endif