diff options
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r-- | src/settings_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h index 9bda96fef..a6953e36d 100644 --- a/src/settings_internal.h +++ b/src/settings_internal.h @@ -76,6 +76,14 @@ enum SettingCategory { SC_END, }; +/** + * Type of settings for filtering. + */ +enum SettingType { + ST_GAME, ///< Game setting. + ST_COMPANY, ///< Company setting. + ST_CLIENT, ///< Client setting. +}; typedef bool OnChange(int32 var); ///< callback prototype on data modification typedef size_t OnConvert(const char *value); ///< callback prototype for convertion error @@ -103,6 +111,7 @@ struct SettingDesc { SaveLoad save; ///< Internal structure (going to savegame, parts to config) bool IsEditable(bool do_command = false) const; + SettingType GetType() const; }; /* NOTE: The only difference between SettingDesc and SettingDescGlob is |