OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fallback.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_FALLBACK_H
2 #define OPENMW_COMPONENTS_FALLBACK_H
3 
4 #include <map>
5 #include <string>
6 
7 #include <osg/Vec4f>
8 
9 namespace Fallback
10 {
12  class Map
13  {
14  std::map<std::string,std::string> mFallbackMap;
15  public:
16  Map(const std::map<std::string,std::string>& fallback);
17  Map() {}
18 
19  std::string getFallbackString(const std::string& fall) const;
20  float getFallbackFloat(const std::string& fall) const;
21  int getFallbackInt(const std::string& fall) const;
22  bool getFallbackBool(const std::string& fall) const;
23  osg::Vec4f getFallbackColour(const std::string& fall) const;
24  };
25 }
26 #endif
std::string getFallbackString(const std::string &fall) const
Definition: fallback.cpp:10
Map()
Definition: fallback.hpp:17
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
float getFallbackFloat(const std::string &fall) const
Definition: fallback.cpp:19
std::map< std::string, std::string > mFallbackMap
Definition: fallback.hpp:14
osg::Vec4f getFallbackColour(const std::string &fall) const
Definition: fallback.cpp:44
bool getFallbackBool(const std::string &fall) const
Definition: fallback.cpp:36
int getFallbackInt(const std::string &fall) const
Definition: fallback.cpp:27