10#ifndef SETTINGS_FUNC_H
11#define SETTINGS_FUNC_H
18void IConsoleSetSetting(
const char *name,
const char *value,
bool force_newgame =
false);
19void IConsoleSetSetting(
const char *name, int32_t value);
Types related to companies.
Owner
Enum for all companies/owners.
void SyncCompanySettings()
Sync all company settings in a multiplayer game.
StringList GetGRFPresetList()
Get the list of known NewGrf presets.
void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc)
Load a WindowDesc from config.
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.
void SaveToConfig()
Save the values to the configuration file.
struct GRFConfig * LoadGRFPresetFromConfig(const char *config_name)
Load a NewGRF configuration by preset-name.
void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc)
Save a WindowDesc to config.
void DeleteGRFPresetFromConfig(const char *config_name)
Delete a NewGRF configuration by preset name.
void IConsoleListSettings(const char *prefilter)
List all settings and their value to the console.
void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config)
Save a NewGRF configuration with a preset name.
void IConsoleGetSetting(const char *name, bool force_newgame=false)
Output value of a specific setting to the console.
std::vector< std::string > StringList
Type for a list of strings.
Information about GRF, used in the game and (part of it) in savegames.
Ini file that supports both loading and saving.