10 #ifndef AI_SCANNER_HPP 11 #define AI_SCANNER_HPP 13 #include "../script/script_scanner.hpp" 20 void Initialize()
override;
35 class AIInfo *
FindInfo(
const char *nameParam,
int versionParam,
bool force_exact_match);
44 const char *
GetFileName()
const override {
return PATHSEP
"info.nut"; }
55 void Initialize()
override;
67 const char *
GetFileName()
const override {
return PATHSEP
"library.nut"; }
int version
Version of the script.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
const char * GetFileName() const override
Get the filename to scan for this type of script.
void SetDummyAI(class AIInfo *info)
Set the Dummy AI.
const char * GetScannerName() const override
Get the type of the script, in plural.
AIInfo * info_dummy
The dummy AI.
Scanner to help finding scripts.
All static information from an Script like name, version, etc.
void RegisterAPI(class Squirrel *engine) override
Register the API for this ScriptInfo.
Subdirectory GetDirectory() const override
Get the directory to scan in.
All static information from an AI library like name, version, etc.
class AIInfo * FindInfo(const char *nameParam, int versionParam, bool force_exact_match)
Check if we have an AI by name and version available in our list.
const char * name
Full name of the script.
Subdirectory for all AI libraries.
const char * GetFileName() const override
Get the filename to scan for this type of script.
All static information from an AI like name, version, etc.
const char * GetScannerName() const override
Get the type of the script, in plural.
Subdirectory for all AI files.
Subdirectory GetDirectory() const override
Get the directory to scan in.
void GetScriptName(ScriptInfo *info, char *name, const char *last) override
Get the script name how to store the script in memory.
class AIInfo * SelectRandomAI() const
Select a random AI.
class Squirrel * engine
The engine we're scanning with.