You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components/fallback/fallback.hpp

26 lines
731 B
C++

#ifndef OPENMW_COMPONENTS_FALLBACK_H
#define OPENMW_COMPONENTS_FALLBACK_H
12 years ago
#include <map>
#include <string>
#include <osg/Vec4f>
12 years ago
namespace Fallback
{
/// @brief contains settings imported from the Morrowind INI file.
class Map
{
static std::map<std::string,std::string> mFallbackMap;
public:
static void init(const std::map<std::string,std::string>& fallback);
static std::string getString(const std::string& fall);
static float getFloat(const std::string& fall);
static int getInt(const std::string& fall);
static bool getBool(const std::string& fall);
static osg::Vec4f getColour(const std::string& fall);
};
}
#endif