File: fallback.hpp

package info (click to toggle)
openmw 0.47.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,276 kB
  • sloc: cpp: 249,935; xml: 1,978; sh: 1,327; python: 63; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef OPENMW_COMPONENTS_FALLBACK_H
#define OPENMW_COMPONENTS_FALLBACK_H

#include <map>
#include <string>

#include <osg/Vec4f>

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