diff options
author | frosch <frosch@openttd.org> | 2012-12-26 17:43:35 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-26 17:43:35 +0000 |
commit | 0efd29b71bc88303e84f14bdf5c13b6e30dd85e2 (patch) | |
tree | 56a5eea697e42408d41eb828004c9ffdb9a82f4c /src/settings_internal.h | |
parent | 9bce12a0ce1e084c5046500cc45c7883102b2c2f (diff) | |
download | openttd-0efd29b71bc88303e84f14bdf5c13b6e30dd85e2.tar.xz |
(svn r24860) -Codechange: Add SettingDesc::GetType().
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 |