diff options
author | truebrain <truebrain@openttd.org> | 2011-11-23 13:39:36 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-23 13:39:36 +0000 |
commit | d03bbdd4acc3fb160c29a5bc03d202bb89b008a2 (patch) | |
tree | 117966d4cd0ba014e4023ed27e6649b74dddd799 /src/ai/ai_scanner.hpp | |
parent | 492c96d2145841ff24713422ee08d1560c0616ef (diff) | |
download | openttd-d03bbdd4acc3fb160c29a5bc03d202bb89b008a2.tar.xz |
(svn r23295) -Codechange: put ImportLibrary in AIController (and document the parameters for NoAI docs)
Diffstat (limited to 'src/ai/ai_scanner.hpp')
-rw-r--r-- | src/ai/ai_scanner.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ai/ai_scanner.hpp b/src/ai/ai_scanner.hpp index f3d0776c6..cbc778069 100644 --- a/src/ai/ai_scanner.hpp +++ b/src/ai/ai_scanner.hpp @@ -24,9 +24,12 @@ public: ~AIScanner(); /** - * Import a library inside the Squirrel VM. + * Find a library by name + version. + * @param library The name of the library to find. + * @param version The prefered version of the library. + * @return The library if found, NULL otherwise. */ - bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm, class AIController *controller); + AILibrary *FindLibrary(const char *library, int version); /** * Register a library to be put in the available list. |