10#ifndef GAME_SCANNER_HPP
11#define GAME_SCANNER_HPP
27 class GameInfo *
FindInfo(
const std::string &name,
int version,
bool force_exact_match);
31 std::string_view
GetFileName()
const override {
return PATHSEP
"info.nut"; }
53 std::string_view
GetFileName()
const override {
return PATHSEP
"library.nut"; }
All static information from an Game like name, version, etc.
All static information from an Game library like name, version, etc.
Game instantiation of a ScriptScanner.
std::string_view GetFileName() const override
Get the filename to scan for this type of script.
std::string GetScriptName(ScriptInfo &info) override
Get the script name how to store the script in memory.
void Initialize() override
Initialize the scanner by scanning for scripts and creating dummies if needed.
Subdirectory GetDirectory() const override
Get the directory to scan in.
void RegisterAPI(class Squirrel &engine) override
Register the API for this ScriptInfo.
class GameInfo * FindInfo(const std::string &name, int version, bool force_exact_match)
Check if we have a game by name and version available in our list.
std::string_view GetScannerName() const override
Get the type of the script, in plural.
Game instantiation of a ScriptScanner for libraries.
void Initialize() override
Initialize the scanner by scanning for scripts and creating dummies if needed.
std::string GetScriptName(ScriptInfo &info) override
Get the script name how to store the script in memory.
std::string_view GetFileName() const override
Get the filename to scan for this type of script.
class GameLibrary * FindLibrary(const std::string &library, int version)
Find a library in the pool.
Subdirectory GetDirectory() const override
Get the directory to scan in.
void RegisterAPI(class Squirrel &engine) override
Register the API for this ScriptInfo.
std::string_view GetScannerName() const override
Get the type of the script, in plural.
All static information from an Script like name, version, etc.
std::unique_ptr< class Squirrel > engine
The engine we're scanning with.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
@ GAME_LIBRARY_DIR
Subdirectory for all GS libraries.
@ GAME_DIR
Subdirectory for all game scripts.
Declarations of the class for the script scanner.