(svn r15090) -Add [NoAI] [API CHANGE]: info.nut/library.nut now requires a function GetShortName(), which should return a 4 (four) character string, unique throughout the world. This id is simular to a GRFid.

This commit is contained in:
truebrain
2009-01-15 14:37:44 +00:00
parent 606ef3c179
commit d62a85f2ce
12 changed files with 31 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ public:
friend class AIInfo;
friend class AILibrary;
AIFileInfo() : author(NULL), name(NULL), description(NULL), date(NULL), instance_name(NULL) {};
AIFileInfo() : author(NULL), name(NULL), short_name(NULL), description(NULL), date(NULL), instance_name(NULL) {};
~AIFileInfo();
/**
@@ -48,6 +48,11 @@ public:
*/
const char *GetName();
/**
* Get the 4 character long short name of the AI.
*/
const char *GetShortName();
/**
* Get the description of the AI.
*/
@@ -106,6 +111,7 @@ private:
class AIScanner *base;
const char *author;
const char *name;
const char *short_name;
const char *description;
const char *date;
const char *instance_name;