#ifndef OPENMW_COMPONENTS_FALLBACK_H #define OPENMW_COMPONENTS_FALLBACK_H #include #include #include #include namespace Fallback { /// @brief contains settings imported from the Morrowind INI file. class Map { static std::map> mIntFallbackMap; static std::map> mFloatFallbackMap; static std::map> mNonNumericFallbackMap; public: static void init(const std::map& fallback); static const std::map>& getIntFallbackMap() { return mIntFallbackMap; } static const std::map>& getFloatFallbackMap() { return mFloatFallbackMap; } static const std::map>& getNonNumericFallbackMap() { return mNonNumericFallbackMap; } 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