summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index a9083ce40..f48245af4 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -74,7 +74,9 @@ struct SettingDesc {
name(name), flags(flags), startup(startup), save(save) {}
virtual ~SettingDesc() {}
+private:
std::string name; ///< Name of the setting. Used in configuration file and for console.
+public:
SettingFlag flags; ///< Handles how a setting would show up in the GUI (text/currency, etc.).
bool startup; ///< Setting has to be loaded directly at startup?.
SaveLoad save; ///< Internal structure (going to savegame, parts to config).
@@ -83,6 +85,15 @@ struct SettingDesc {
SettingType GetType() const;
/**
+ * Get the name of this setting.
+ * @return The name of the setting.
+ */
+ constexpr const std::string &GetName() const
+ {
+ return this->name;
+ }
+
+ /**
* Check whether this setting is an integer type setting.
* @return True when the underlying type is an integer.
*/