25 lines
381 B
C++
25 lines
381 B
C++
#ifndef CONFIG
|
|
#define CONFIG
|
|
|
|
#include "jsoncpp/json.h"
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <SDL2/SDL.h>
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
class Config
|
|
{
|
|
public:
|
|
Config(string filename);
|
|
int genDefConf();
|
|
|
|
public:
|
|
int width = 0, height = 0, sdlOption = 0;
|
|
|
|
private:
|
|
Json::Value jsonConfig;
|
|
};
|
|
|
|
#endif //CONFIG
|