From a91ff2d5e8b0a65da160b93f2aa293d3c54c2ae3 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 19 Apr 2009 15:14:23 +0000 Subject: (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. --- src/script/script_info.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/script/script_info.hpp') 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(); @@ -56,6 +57,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. */ @@ -83,6 +89,7 @@ private: const char *date; const char *instance_name; int version; + const char *url; }; #endif /* SCRIPT_INFO */ -- cgit v1.2.3-54-g00ecf