diff options
author | yexo <yexo@openttd.org> | 2009-04-19 15:14:23 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-04-19 15:14:23 +0000 |
commit | a91ff2d5e8b0a65da160b93f2aa293d3c54c2ae3 (patch) | |
tree | 9b72fe67cc6fc9267cfb13a40999747e5552175c /src/script/script_info.hpp | |
parent | ef909252265088d0a3d0949f37d34ddb853a18c7 (diff) | |
download | openttd-a91ff2d5e8b0a65da160b93f2aa293d3c54c2ae3.tar.xz |
(svn r16093) -Feature [FS#2808]: Add GetURL() as possible function to info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window.
Diffstat (limited to 'src/script/script_info.hpp')
-rw-r--r-- | src/script/script_info.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/script/script_info.hpp b/src/script/script_info.hpp index d34fd4cef..945e86407 100644 --- a/src/script/script_info.hpp +++ b/src/script/script_info.hpp @@ -17,7 +17,8 @@ public: short_name(NULL), description(NULL), date(NULL), - instance_name(NULL) + instance_name(NULL), + url(NULL) {} ~ScriptFileInfo(); @@ -57,6 +58,11 @@ public: const char *GetInstanceName() const { return this->instance_name; } /** + * Get the website for this script. + */ + const char *GetURL() const { return this->url; } + + /** * Get the filename of the main.nut script. */ const char *GetMainScript() const { return this->main_script; } @@ -83,6 +89,7 @@ private: const char *date; const char *instance_name; int version; + const char *url; }; #endif /* SCRIPT_INFO */ |