(svn r23613) -Add: allow IsDeveloperOnly in info.nut, to indicate if you can select this GS via the GUI (optional, defaults to false)

This commit is contained in:
truebrain
2011-12-19 20:57:08 +00:00
parent 963802e9a7
commit 1616961ea2
5 changed files with 36 additions and 7 deletions

View File

@@ -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.