OpenTTD Source: src/settings_table.h Source File

OpenTTD Source 15.0-RC2

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
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 std::array<uint16_t, GAME_DIFFICULTY_NUM> _old_diff_custom;
43
44#endif /* SETTINGS_TABLE_H */
settings_internal.h
Functions and types used internally for the settings configurations.