12 #ifndef GAME_SCANNER_HPP 13 #define GAME_SCANNER_HPP 15 #include "../script/script_scanner.hpp" 28 class GameInfo *
FindInfo(
const char *nameParam,
int versionParam,
bool force_exact_match);
32 const char *
GetFileName()
const {
return PATHSEP
"info.nut"; }
53 const char *
GetFileName()
const {
return PATHSEP
"library.nut"; }
void RegisterAPI(class Squirrel *engine)
Register the API for this ScriptInfo.
int version
Version of the script.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
class GameInfo * FindInfo(const char *nameParam, int versionParam, bool force_exact_match)
Check if we have a game by name and version available in our list.
Subdirectory for all game scripts.
All static information from an Game like name, version, etc.
Scanner to help finding scripts.
All static information from an Game library like name, version, etc.
const char * GetScannerName() const
Get the type of the script, in plural.
Subdirectory GetDirectory() const
Get the directory to scan in.
Subdirectory GetDirectory() const
Get the directory to scan in.
const char * GetScannerName() const
Get the type of the script, in plural.
All static information from an Script like name, version, etc.
Subdirectory for all GS libraries.
void GetScriptName(ScriptInfo *info, char *name, const char *last)
Get the script name how to store the script in memory.
const char * name
Full name of the script.
const char * GetFileName() const
Get the filename to scan for this type of script.
const char * GetFileName() const
Get the filename to scan for this type of script.
class Squirrel * engine
The engine we're scanning with.