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