10#ifndef SETTINGS_FUNC_H
11#define SETTINGS_FUNC_H
20void IConsoleSetSetting(std::string_view name, std::string_view value,
bool force_newgame =
false);
21void IConsoleSetSetting(std::string_view name, int32_t value);
Types related to companies.
Functions to find and configure NewGRFs.
void SyncCompanySettings()
Sync all company settings in a multiplayer game.
void IniLoadWindowSettings(IniFile &ini, std::string_view grpname, WindowDesc *desc)
Load a WindowDesc from config.
void SaveGRFPresetToConfig(std::string_view config_name, GRFConfigList &config)
Save a NewGRF configuration with a preset name.
StringList GetGRFPresetList()
Get the list of known NewGrf presets.
void IConsoleGetSetting(std::string_view name, bool force_newgame=false)
Output value of a specific setting to the console.
void DeleteGRFPresetFromConfig(std::string_view config_name)
Delete a NewGRF configuration by preset name.
void SetDefaultCompanySettings(CompanyID cid)
Set the company settings for a new company to their default values.
void LoadFromConfig(bool minimal=false)
Load the values from the configuration files.
GRFConfigList LoadGRFPresetFromConfig(std::string_view config_name)
Load a NewGRF configuration by preset-name.
void SaveToConfig()
Save the values to the configuration file.
void IConsoleListSettings(std::string_view prefilter)
List all settings and their value to the console.
void IniSaveWindowSettings(IniFile &ini, std::string_view grpname, WindowDesc *desc)
Save a WindowDesc to config.
std::vector< std::string > StringList
Type for a list of strings.
Ini file that supports both loading and saving.
High level window description.