OpenTTD Source 20260109-master-g241b5fcdfe
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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef SETTINGS_TABLE_H
11#define SETTINGS_TABLE_H
12
13#include "settings_internal.h"
14
15extern SettingTable _company_settings;
16extern SettingTable _currency_settings;
17extern SettingTable _difficulty_settings;
18extern SettingTable _economy_settings;
19extern SettingTable _game_settings;
20extern SettingTable _gui_settings;
21extern SettingTable _linkgraph_settings;
22extern SettingTable _locale_settings;
23extern SettingTable _misc_settings;
24extern SettingTable _multimedia_settings;
25extern SettingTable _network_private_settings;
26extern SettingTable _network_secrets_settings;
27extern SettingTable _network_settings;
28extern SettingTable _news_display_settings;
29extern SettingTable _old_gameopt_settings;
30extern SettingTable _pathfinding_settings;
31extern SettingTable _script_settings;
32extern SettingTable _window_settings;
33extern SettingTable _world_settings;
34#if defined(_WIN32) && !defined(DEDICATED)
35extern SettingTable _win32_settings;
36#endif /* _WIN32 */
37
38static const uint GAME_DIFFICULTY_NUM = 18;
39extern const std::array<std::string, GAME_DIFFICULTY_NUM> _old_diff_settings;
40extern std::array<uint16_t, GAME_DIFFICULTY_NUM> _old_diff_custom;
41
42#endif /* SETTINGS_TABLE_H */
Functions and types used internally for the settings configurations.