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
|
|
|
{
|
2016-01-06 11:58:36 +00:00
|
|
|
std::map<std::string,std::string> mFallbackMap;
|
2013-03-15 09:17:30 +00:00
|
|
|
public:
|
2016-01-06 11:46:06 +00:00
|
|
|
Map(const std::map<std::string,std::string>& fallback);
|
2016-01-06 11:58:36 +00:00
|
|
|
Map() {}
|
|
|
|
|
2013-03-15 09:17:30 +00:00
|
|
|
std::string getFallbackString(const std::string& fall) const;
|
|
|
|
float getFallbackFloat(const std::string& fall) const;
|
2015-02-09 18:28:29 +00:00
|
|
|
int getFallbackInt(const std::string& fall) const;
|
2013-03-15 09:17:30 +00:00
|
|
|
bool getFallbackBool(const std::string& fall) const;
|
2015-04-14 13:55:56 +00:00
|
|
|
osg::Vec4f getFallbackColour(const std::string& fall) const;
|
2013-03-15 09:17:30 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|