|
|
| GameConfig (const GameConfig *config) |
| |
|
class GameInfo * | GetInfo () const |
| |
| bool | ResetInfo (bool force_exact_match) |
| | When ever the Game Scanner is reloaded, all infos become invalid. More...
|
| |
| | ScriptConfig (const ScriptConfig *config) |
| | Create a new Script config that is a copy of an existing config. More...
|
| |
|
virtual | ~ScriptConfig () |
| | Delete an Script configuration.
|
| |
| void | Change (std::optional< const std::string > name, int version=-1, bool force_exact_match=false, bool is_random=false) |
| | Set another Script to be loaded in this slot. More...
|
| |
|
class ScriptInfo * | GetInfo () const |
| | Get the ScriptInfo linked to this ScriptConfig.
|
| |
|
const ScriptConfigItemList * | GetConfigList () |
| | Get the config list for this ScriptConfig.
|
| |
| void | AnchorUnchangeableSettings () |
| | As long as the default of a setting has not been changed, the value of the setting is not stored. More...
|
| |
| int | GetSetting (const std::string &name) const |
| | Get the value of a setting for this config. More...
|
| |
|
void | SetSetting (const std::string_view name, int value) |
| | Set the value of a setting for this config.
|
| |
|
void | ResetSettings () |
| | Reset all settings to their default value.
|
| |
|
void | ResetEditableSettings (bool yet_to_start) |
| | Reset only editable and visible settings to their default value.
|
| |
|
void | AddRandomDeviation () |
| | Randomize all settings the Script requested to be randomized.
|
| |
|
bool | HasScript () const |
| | Is this config attached to an Script? In other words, is there a Script that is assigned to this slot.
|
| |
|
bool | IsRandom () const |
| | Is the current Script a randomly chosen Script?
|
| |
|
const std::string & | GetName () const |
| | Get the name of the Script.
|
| |
|
int | GetVersion () const |
| | Get the version of the Script.
|
| |
|
void | StringToSettings (const std::string &value) |
| | Convert a string which is stored in the config file or savegames to custom settings of this Script.
|
| |
|
std::string | SettingsToString () const |
| | Convert the custom settings to a string that can be stored in the config file or savegames.
|
| |
| std::optional< std::string > | GetTextfile (TextfileType type, CompanyID slot) const |
| | Search a textfile file next to this script. More...
|
| |
|
void | SetToLoadData (ScriptInstance::ScriptData *data) |
| |
|
ScriptInstance::ScriptData * | GetToLoadData () |
| |
Definition at line 15 of file game_config.hpp.