OpenTTD Source  20241108-master-g80f628063a
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 
17 extern SettingTable _company_settings;
18 extern SettingTable _currency_settings;
19 extern SettingTable _difficulty_settings;
20 extern SettingTable _economy_settings;
21 extern SettingTable _game_settings;
22 extern SettingTable _gui_settings;
23 extern SettingTable _linkgraph_settings;
24 extern SettingTable _locale_settings;
25 extern SettingTable _misc_settings;
26 extern SettingTable _multimedia_settings;
27 extern SettingTable _network_private_settings;
28 extern SettingTable _network_secrets_settings;
29 extern SettingTable _network_settings;
30 extern SettingTable _news_display_settings;
31 extern SettingTable _old_gameopt_settings;
32 extern SettingTable _pathfinding_settings;
33 extern SettingTable _script_settings;
34 extern SettingTable _window_settings;
35 extern SettingTable _world_settings;
36 #if defined(_WIN32) && !defined(DEDICATED)
37 extern SettingTable _win32_settings;
38 #endif /* _WIN32 */
39 
40 static const uint GAME_DIFFICULTY_NUM = 18;
41 extern const std::array<std::string, GAME_DIFFICULTY_NUM> _old_diff_settings;
42 extern uint16_t _old_diff_custom[GAME_DIFFICULTY_NUM];
43 
44 #endif /* SETTINGS_TABLE_H */
Functions and types used internally for the settings configurations.