mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_FALLBACK_H
 | 
						|
#define OPENMW_COMPONENTS_FALLBACK_H
 | 
						|
 | 
						|
#include <map>
 | 
						|
#include <string>
 | 
						|
#include <string_view>
 | 
						|
 | 
						|
#include <osg/Vec4f>
 | 
						|
 | 
						|
namespace Fallback
 | 
						|
{
 | 
						|
    /// @brief contains settings imported from the Morrowind INI file.
 | 
						|
    class Map
 | 
						|
    {
 | 
						|
        static std::map<std::string, std::string, std::less<>> mFallbackMap;
 | 
						|
 | 
						|
    public:
 | 
						|
        static void init(const std::map<std::string, std::string>& fallback);
 | 
						|
 | 
						|
        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);
 | 
						|
    };
 | 
						|
}
 | 
						|
#endif
 |