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

This commit is contained in:
yexo
2009-04-19 15:14:23 +00:00
parent ef90925226
commit a91ff2d5e8
5 changed files with 27 additions and 1 deletions

View File

@@ -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 */