OpenTTD Source 20241224-master-gf74b0cf984
settings_table.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
12#ifndef SETTINGS_TABLE_H
13#define SETTINGS_TABLE_H
14
15#include "settings_internal.h"
16
17extern SettingTable _company_settings;
18extern SettingTable _currency_settings;
19extern SettingTable _difficulty_settings;
20extern SettingTable _economy_settings;
21extern SettingTable _game_settings;
22extern SettingTable _gui_settings;
23extern SettingTable _linkgraph_settings;
24extern SettingTable _locale_settings;
25extern SettingTable _misc_settings;
26extern SettingTable _multimedia_settings;
27extern SettingTable _network_private_settings;
28extern SettingTable _network_secrets_settings;
29extern SettingTable _network_settings;
30extern SettingTable _news_display_settings;
31extern SettingTable _old_gameopt_settings;
32extern SettingTable _pathfinding_settings;
33extern SettingTable _script_settings;
34extern SettingTable _window_settings;
35extern SettingTable _world_settings;
36#if defined(_WIN32) && !defined(DEDICATED)
37extern SettingTable _win32_settings;
38#endif /* _WIN32 */
39
40static const uint GAME_DIFFICULTY_NUM = 18;
41extern const std::array<std::string, GAME_DIFFICULTY_NUM> _old_diff_settings;
42extern uint16_t _old_diff_custom[GAME_DIFFICULTY_NUM];
43
44#endif /* SETTINGS_TABLE_H */
Functions and types used internally for the settings configurations.