2013-03-15 09:17:30 +00:00
|
|
|
#ifndef GAME_MWWORLD_FALLBACK_H
|
|
|
|
#define GAME_MWWORLD_FALLBACK_H
|
2013-03-15 09:26:04 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
2015-04-14 13:55:56 +00:00
|
|
|
#include <osg/Vec4f>
|
2013-03-15 09:26:04 +00:00
|
|
|
|
2013-03-15 09:17:30 +00:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Fallback
|
|
|
|
{
|
|
|
|
const std::map<std::string,std::string> mFallbackMap;
|
|
|
|
public:
|
2013-03-15 09:26:04 +00:00
|
|
|
Fallback(const std::map<std::string,std::string>& fallback);
|
2013-03-15 09:17:30 +00:00
|
|
|
std::string getFallbackString(const std::string& fall) const;
|
|
|
|
float getFallbackFloat(const std::string& fall) const;
|
2015-02-09 18:28:29 +00:00
|
|
|
int getFallbackInt(const std::string& fall) const;
|
2013-03-15 09:17:30 +00:00
|
|
|
bool getFallbackBool(const std::string& fall) const;
|
2015-04-14 13:55:56 +00:00
|
|
|
osg::Vec4f getFallbackColour(const std::string& fall) const;
|
2013-03-15 09:17:30 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|