2016-01-06 12:46:06 +01:00
|
|
|
#ifndef OPENMW_COMPONENTS_FALLBACK_H
|
|
|
|
#define OPENMW_COMPONENTS_FALLBACK_H
|
2013-03-15 10:26:04 +01:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2022-08-28 17:20:49 +02:00
|
|
|
#include <string_view>
|
2013-03-15 10:26:04 +01:00
|
|
|
|
2015-04-14 15:55:56 +02:00
|
|
|
#include <osg/Vec4f>
|
2013-03-15 10:26:04 +01:00
|
|
|
|
2016-01-06 12:46:06 +01:00
|
|
|
namespace Fallback
|
2013-03-15 10:17:30 +01:00
|
|
|
{
|
2016-01-06 12:46:06 +01:00
|
|
|
/// @brief contains settings imported from the Morrowind INI file.
|
|
|
|
class Map
|
2013-03-15 10:17:30 +01:00
|
|
|
{
|
2022-08-28 17:20:49 +02:00
|
|
|
static std::map<std::string, std::string, std::less<>> mFallbackMap;
|
2016-01-06 12:58:36 +01:00
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
public:
|
2019-01-22 10:08:48 +04:00
|
|
|
static void init(const std::map<std::string, std::string>& fallback);
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2022-08-28 17:20:49 +02:00
|
|
|
static std::string_view getString(std::string_view fall);
|
|
|
|
static float getFloat(std::string_view fall);
|
|
|
|
static int getInt(std::string_view fall);
|
|
|
|
static bool getBool(std::string_view fall);
|
|
|
|
static osg::Vec4f getColour(std::string_view fall);
|
2013-03-15 10:17:30 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|