1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
OpenMW/components/fallback/fallback.hpp

27 lines
767 B
C++
Raw Normal View History

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>
#include <osg/Vec4f>
2013-03-15 10:26:04 +01:00
2016-01-06 12:46:06 +01:00
namespace Fallback
{
2016-01-06 12:46:06 +01:00
/// @brief contains settings imported from the Morrowind INI file.
class Map
{
2016-01-06 12:58:36 +01:00
std::map<std::string,std::string> mFallbackMap;
public:
2016-01-06 12:46:06 +01:00
Map(const std::map<std::string,std::string>& fallback);
2016-01-06 12:58:36 +01:00
Map() {}
std::string getFallbackString(const std::string& fall) const;
float getFallbackFloat(const std::string& fall) const;
int getFallbackInt(const std::string& fall) const;
bool getFallbackBool(const std::string& fall) const;
osg::Vec4f getFallbackColour(const std::string& fall) const;
};
}
#endif