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>
|
|
|
|
|
2013-03-15 09:17:30 +00:00
|
|
|
#include <OgreColourValue.h>
|
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;
|
|
|
|
bool getFallbackBool(const std::string& fall) const;
|
|
|
|
Ogre::ColourValue getFallbackColour(const std::string& fall) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|