OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../settings_type.h"
16 #include "../safeguards.h"
26 if (*config ==
nullptr) *config =
new GameConfig();
30 class GameInfo *GameConfig::GetInfo()
const
43 return this->
info !=
nullptr;
class GameConfig * game_config
settings for gamescript
int version
Version of the script.
static class GameInfo * FindInfo(const std::string &name, int version, bool force_exact_match)
Wrapper function for GameScannerInfo::FindInfo.
@ SSS_DEFAULT
Get the Script config from the current game mode.
class ScriptInfo * GetInfo() const
Get the ScriptInfo linked to this ScriptConfig.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
int version
Version of the Script.
ScriptInfo * FindInfo(const std::string &name, int version, bool force_exact_match) override
This function should call back to the Scanner in charge of this Config, to find the ScriptInfo belong...
class ScriptInfo * info
ScriptInfo object for related to this Script version.
bool ResetInfo(bool force_exact_match)
When ever the Game Scanner is reloaded, all infos become invalid.
static GameConfig * GetConfig(ScriptSettingSource source=SSS_DEFAULT)
Get the config of a company.
@ SSS_FORCE_NEWGAME
Get the newgame Script config.
All static information from an Game like name, version, etc.
std::string name
Full name of the script.
std::string name
Name of the Script.
All static information from an Script like name, version, etc.
GameSettings _settings_newgame
Game settings for new games (updated from the intro screen).
ScriptSettingSource
Where to get the config from, either default (depends on current game mode) or force either newgame o...