summaryrefslogtreecommitdiff
path: root/src/script/script_info.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:57:08 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:57:08 +0000
commit1616961ea2c1fa84c41d7df9af535fbb190d2c41 (patch)
tree4ff03a081e56d7f81491dfb06d1d2257a87bcb82 /src/script/script_info.hpp
parent963802e9a7cb67f51cb7e6ffe9d33a02cfe93821 (diff)
downloadopenttd-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/script/script_info.hpp')
-rw-r--r--src/script/script_info.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/script_info.hpp b/src/script/script_info.hpp
index 4e59c7d72..4ed160726 100644
--- a/src/script/script_info.hpp
+++ b/src/script/script_info.hpp
@@ -142,6 +142,10 @@ public:
*/
int GetSettingDefaultValue(const char *name) const;
+ /**
+ * Can this script be selected by developers only?
+ */
+ virtual bool IsDeveloperOnly() const { return false; }
protected:
class Squirrel *engine; ///< Engine used to register for Squirrel.