Settings now inherits from Object.

This commit is contained in:
Relintai 2022-01-06 18:58:25 +01:00
parent 86f19a3353
commit fa6c1281b9

View File

@ -3,10 +3,14 @@
#include <map>
#include "core/object.h"
#include "core/variant.h"
#include "core/string.h"
class Settings {
class Settings : public Object {
RCPP_OBJECT(Settings, Object);
public:
Variant get_value(const String &key, const Variant &def = Variant());
String get_value_string(const String &key, const String &def = "");
@ -15,7 +19,7 @@ public:
double get_value_double(const String &key, const double def = 0);
bool get_value_bool(const String &key, const bool def = false);
void set_value(const String &key, const Variant &value);
virtual void set_value(const String &key, const Variant &value);
void parse_ini_file(const String &path);