Inferno Game Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
594 B

#ifndef SETTINGS_H
#define SETTINGS_H
#include <nlohmann/json.hpp>
#include "inferno/window.h"
namespace Inferno {
struct SettingsProperties {
WindowProperties window;
};
class Settings {
public:
static void initialize();
static void update();
static void destroy();
static nlohmann::json load();
static bool save();
// -----------------------------------------
static inline SettingsProperties &get() { return m_properties; }
private:
static bool m_initialized;
static const char* m_path;
static SettingsProperties m_properties;
};
}
#endif // SETTINGS_H