12 #ifndef SETTINGS_FUNC_H 13 #define SETTINGS_FUNC_H 20 void IConsoleSetSetting(
const char *name,
const char *value,
bool force_newgame =
false);
21 void IConsoleSetSetting(
const char *name, int32 value);
44 #if defined(ENABLE_NETWORK) void IConsoleListSettings(const char *prefilter)
List all settings and their value to the console.
Simple vector class that allows allocating an item without the need to copy this->data needlessly...
void SaveToConfig()
Save the values to the configuration file.
void GetGRFPresetList(GRFPresetList *list)
Get the list of known NewGrf presets.
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.
uint GetCompanySettingIndex(const char *name)
Get the index in the _company_settings array of a setting.
void SyncCompanySettings()
Sync all company settings in a multiplayer game.
Information about GRF, used in the game and (part of it) in savegames.
void IConsoleGetSetting(const char *name, bool force_newgame=false)
Output value of a specific setting to the console.
void IniLoadWindowSettings(IniFile *ini, const char *grpname, void *desc)
Load a WindowDesc from config.
void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config)
Save a NewGRF configuration with a preset name.
void IniSaveWindowSettings(IniFile *ini, const char *grpname, void *desc)
Save a WindowDesc to config.
struct GRFConfig * LoadGRFPresetFromConfig(const char *config_name)
Load a NewGRF configuration by preset-name.
Ini file that supports both loading and saving.
GRFTextWrapper * name
NOSAVE: GRF name (Action 0x08)
Types related to companies.
void DeleteGRFPresetFromConfig(const char *config_name)
Delete a NewGRF configuration by preset name.
Owner
Enum for all companies/owners.