(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user