12 #include "../stdafx.h" 13 #include "../settings_type.h" 18 #include "../safeguards.h" 28 if (*config == NULL) *config =
new GameConfig();
32 class GameInfo *GameConfig::GetInfo()
const 45 return this->
info != NULL;
GameSettings _settings_game
Game settings of a running game or the scenario editor.
GameConfig stores the configuration settings of every Game.
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.
All static information from an Game like name, version, etc.
Get the Script config from the current game mode.
class ScriptInfo * GetInfo() const
Get the ScriptInfo linked to this ScriptConfig.
static class GameInfo * FindInfo(const char *name, int version, bool force_exact_match)
Wrapper function for GameScannerInfo::FindInfo.
ScriptInfo * FindInfo(const char *name, int version, bool force_exact_match)
This function should call back to the Scanner in charge of this Config, to find the ScriptInfo belong...
All static information from an Script like name, version, etc.
ScriptSettingSource
Where to get the config from, either default (depends on current game mode) or force either newgame o...
GameSettings _settings_newgame
Game settings for new games (updated from the intro screen).
class GameConfig * game_config
settings for gamescript
GameInfo keeps track of all information of an Game, like Author, Description, ... ...
int version
Version of the Script.
Get the newgame Script config.
Base functions for all Games.
class ScriptInfo * info
ScriptInfo object for related to this Script version.
const char * name
Name of the Script.