Add: INR currency (#8136)
[openttd-github.git] / src / game / game_config.hpp
bloba01128e671bd0920ec1aecb3bab6e51017b085bd
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 */
8 /** @file game_config.hpp GameConfig stores the configuration settings of every Game. */
10 #ifndef GAME_CONFIG_HPP
11 #define GAME_CONFIG_HPP
13 #include "../script/script_config.hpp"
15 class GameConfig : public ScriptConfig {
16 public:
17 /**
18 * Get the config of a company.
20 static GameConfig *GetConfig(ScriptSettingSource source = SSS_DEFAULT);
22 GameConfig() :
23 ScriptConfig()
26 GameConfig(const GameConfig *config) :
27 ScriptConfig(config)
30 class GameInfo *GetInfo() const;
32 /**
33 * When ever the Game Scanner is reloaded, all infos become invalid. This
34 * function tells GameConfig about this.
35 * @param force_exact_match If true try to find the exact same version
36 * as specified. If false any version is ok.
37 * @return \c true if the reset was successful, \c false if the Game was no longer
38 * found.
40 bool ResetInfo(bool force_exact_match);
42 protected:
43 ScriptInfo *FindInfo(const char *name, int version, bool force_exact_match) override;
46 #endif /* GAME_CONFIG_HPP */