mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
34 lines
536 B
C++
34 lines
536 B
C++
![]() |
#ifndef OPENMW_COMPONENTS_SETTINGS_VALUES_H
|
||
|
#define OPENMW_COMPONENTS_SETTINGS_VALUES_H
|
||
|
|
||
|
#include "sanitizerimpl.hpp"
|
||
|
#include "settingvalue.hpp"
|
||
|
|
||
|
namespace Settings
|
||
|
{
|
||
|
class Values
|
||
|
{
|
||
|
public:
|
||
|
static void init();
|
||
|
|
||
|
private:
|
||
|
static Values* sValues;
|
||
|
|
||
|
friend const Values& values();
|
||
|
|
||
|
friend Values& valuesMutable();
|
||
|
};
|
||
|
|
||
|
inline const Values& values()
|
||
|
{
|
||
|
return *Values::sValues;
|
||
|
}
|
||
|
|
||
|
inline Values& valuesMutable()
|
||
|
{
|
||
|
return *Values::sValues;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|