Go to the documentation of this file.
10 #ifndef GAME_SCANNER_HPP
11 #define GAME_SCANNER_HPP
13 #include "../script/script_scanner.hpp"
17 void Initialize()
override;
26 class GameInfo *
FindInfo(
const char *nameParam,
int versionParam,
bool force_exact_match);
30 const char *
GetFileName()
const override {
return PATHSEP
"info.nut"; }
39 void Initialize()
override;
51 const char *
GetFileName()
const override {
return PATHSEP
"library.nut"; }
const char * GetScannerName() const override
Get the type of the script, in plural.
class Squirrel * engine
The engine we're scanning with.
@ GAME_LIBRARY_DIR
Subdirectory for all GS libraries.
const char * GetFileName() const override
Get the filename to scan for this type of script.
const char * GetScannerName() const override
Get the type of the script, in plural.
int version
Version of the script.
void RegisterAPI(class Squirrel *engine) override
Register the API for this ScriptInfo.
Scanner to help finding scripts.
class GameLibrary * FindLibrary(const char *library, int version)
Find a library in the pool.
@ GAME_DIR
Subdirectory for all game scripts.
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.
void GetScriptName(ScriptInfo *info, char *name, const char *last) override
Get the script name how to store the script in memory.
All static information from an Game like name, version, etc.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
void RegisterAPI(class Squirrel *engine) override
Register the API for this ScriptInfo.
All static information from an Game library like name, version, etc.
const char * name
Full name of the script.
All static information from an Script like name, version, etc.
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.
const char * GetFileName() const override
Get the filename to scan for this type of script.
Subdirectory GetDirectory() const override
Get the directory to scan in.