diff options
author | truebrain <truebrain@openttd.org> | 2009-01-13 01:46:46 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-13 01:46:46 +0000 |
commit | bcbbf2c366b829994983513d2858762874e99964 (patch) | |
tree | a2e699a90fbe7d2ebd18ddd9ea713546f3f641bc /src/ai/ai.hpp | |
parent | e6883c5cc7dedad23dfcf7a303a7154520db7f5e (diff) | |
download | openttd-bcbbf2c366b829994983513d2858762874e99964.tar.xz |
(svn r15045) -Add [NoAI API CHANGE]: in info.nut you can now have (optional) a CanLoadFromVersion(version), which should return true/false, to indicate if you can load a savegame made with your AI of version 'version'
-Add [NoAI API CHANGE]: in main.nut the Load() function now should be Load(version, data), where 'version' is the version of your AI which made the savegame
-Codechange [NoAI]: various of function renames to make things more sane
-Add [NoAI]: push the 'version' of the AI through various of layers
-Codechange [NoAI]: various of code cleanups
-Add [NoAI]: store the version of the AI in the savegame too
Diffstat (limited to 'src/ai/ai.hpp')
-rw-r--r-- | src/ai/ai.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp index bd1c2a907..0bf0a1991 100644 --- a/src/ai/ai.hpp +++ b/src/ai/ai.hpp @@ -86,11 +86,11 @@ public: /** * Load data for an AI from a savegame. */ - static void Load(CompanyID company); + static void Load(CompanyID company, int version); static char *GetConsoleList(char *p, const char *last); static const AIInfoList *GetInfoList(); - static AIInfo *GetCompanyInfo(const char *name); + static AIInfo *FindInfo(const char *name, int version); static bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm); static void Rescan(); |