OpenTTD Source 20241224-master-gee860a5c8e
ai_info.cpp File Reference

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<>
const char * GetClassName< AIInfo, ScriptType::AI > ()
 

Detailed Description

Implementation of AIInfo and AILibrary.

Definition in file ai_info.cpp.

Function Documentation

◆ CheckAPIVersion()

static bool CheckAPIVersion ( const std::string &  api_version)
static

Check if the API version provided by the AI is supported.

Parameters
api_versionThe API version as provided by the AI.

Definition at line 25 of file ai_info.cpp.

Referenced by AIInfo::Constructor(), and GameInfo::Constructor().

◆ GetClassName< AIInfo, ScriptType::AI >()

template<>
const char * GetClassName< AIInfo, ScriptType::AI > ( )

Definition at line 34 of file ai_info.cpp.