diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:57:08 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:57:08 +0000 |
commit | 1616961ea2c1fa84c41d7df9af535fbb190d2c41 (patch) | |
tree | 4ff03a081e56d7f81491dfb06d1d2257a87bcb82 /src/game/game_info.hpp | |
parent | 963802e9a7cb67f51cb7e6ffe9d33a02cfe93821 (diff) | |
download | openttd-1616961ea2c1fa84c41d7df9af535fbb190d2c41.tar.xz |
(svn r23613) -Add: allow IsDeveloperOnly in info.nut, to indicate if you can select this GS via the GUI (optional, defaults to false)
Diffstat (limited to 'src/game/game_info.hpp')
-rw-r--r-- | src/game/game_info.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/game_info.hpp b/src/game/game_info.hpp index 8fe588dd0..3d42d3379 100644 --- a/src/game/game_info.hpp +++ b/src/game/game_info.hpp @@ -41,8 +41,11 @@ public: */ const char *GetAPIVersion() const { return this->api_version; } + /* virtual */ bool IsDeveloperOnly() const { return this->is_developer_only; } + private: int min_loadable_version; ///< The Game can load savegame data if the version is equal or greater than this. + bool is_developer_only; ///< Is the script selectable by non-developers? const char *api_version; ///< API version used by this Game. }; |