From 1616961ea2c1fa84c41d7df9af535fbb190d2c41 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 20:57:08 +0000 Subject: (svn r23613) -Add: allow IsDeveloperOnly in info.nut, to indicate if you can select this GS via the GUI (optional, defaults to false) --- src/script/api/script_info_docs.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/script/api') diff --git a/src/script/api/script_info_docs.hpp b/src/script/api/script_info_docs.hpp index 10d2f09f7..dd7673294 100644 --- a/src/script/api/script_info_docs.hpp +++ b/src/script/api/script_info_docs.hpp @@ -129,6 +129,19 @@ public: */ bool UseAsRandomAI(); + /** + * Can a non-developer select Script for a new game. + * + * The idea behind this function is to 'forbid' using your script with a new + * game if you for example specificly wrote it for a certain scenario. + * + * @return True if the Script can be selected from the GUI as non-developer. + * @note This function is optional. Default is false. + * + * @api -ai + */ + bool IsDeveloperOnly(); + /** * Gets the name of main class of the Script so OpenTTD knows * what class to instantiate. -- cgit v1.2.3-54-g00ecf