|
OpenTTD Source 20260211-master-g04436b7401
|
Implementation of AIInfo and AILibrary. More...
#include "../stdafx.h"#include "../script/squirrel_class.hpp"#include "ai_info.hpp"#include "ai_scanner.hpp"#include "../debug.h"#include "../string_func.h"#include "../rev.h"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| static bool | CheckAPIVersion (const std::string &api_version) |
| Check if the API version provided by the AI is supported. | |
| template<> | |
| SQInteger | PushClassName< AIInfo, ScriptType::AI > (HSQUIRRELVM vm) |
Implementation of AIInfo and AILibrary.
Definition in file ai_info.cpp.
|
static |
Check if the API version provided by the AI is supported.
| api_version | The API version as provided by the AI. |
true if the given version is supported by this version of OpenTTD. Definition at line 26 of file ai_info.cpp.
References AIInfo::ApiVersions.
Referenced by AIInfo::Constructor(), and GameInfo::Constructor().
| SQInteger PushClassName< AIInfo, ScriptType::AI > | ( | HSQUIRRELVM | vm | ) |
Definition at line 31 of file ai_info.cpp.