12 #ifndef AI_SCANNER_HPP 13 #define AI_SCANNER_HPP 15 #include "../script/script_scanner.hpp" 37 class AIInfo *
FindInfo(
const char *nameParam,
int versionParam,
bool force_exact_match);
46 const char *
GetFileName()
const {
return PATHSEP
"info.nut"; }
69 const char *
GetFileName()
const {
return PATHSEP
"library.nut"; }
int version
Version of the script.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
void SetDummyAI(class AIInfo *info)
Set the Dummy AI.
Subdirectory GetDirectory() const
Get the directory to scan in.
const char * GetScannerName() const
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.
const char * GetScannerName() const
Get the type of the script, in plural.
void GetScriptName(ScriptInfo *info, char *name, const char *last)
Get the script name how to store the script in memory.
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 * GetFileName() const
Get the filename to scan for this type of script.
Subdirectory GetDirectory() const
Get the directory to scan in.
const char * name
Full name of the script.
Subdirectory for all AI libraries.
All static information from an AI like name, version, etc.
Subdirectory for all AI files.
class AIInfo * SelectRandomAI() const
Select a random AI.
const char * GetFileName() const
Get the filename to scan for this type of script.
class Squirrel * engine
The engine we're scanning with.
void RegisterAPI(class Squirrel *engine)
Register the API for this ScriptInfo.