mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:56:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			1,012 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			1,012 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GROUNDCOVER_H
 | 
						|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GROUNDCOVER_H
 | 
						|
 | 
						|
#include <components/settings/sanitizerimpl.hpp>
 | 
						|
#include <components/settings/settingvalue.hpp>
 | 
						|
 | 
						|
#include <osg/Math>
 | 
						|
#include <osg/Vec2f>
 | 
						|
#include <osg/Vec3f>
 | 
						|
 | 
						|
#include <cstdint>
 | 
						|
#include <string>
 | 
						|
#include <string_view>
 | 
						|
 | 
						|
namespace Settings
 | 
						|
{
 | 
						|
    struct GroundcoverCategory : WithIndex
 | 
						|
    {
 | 
						|
        using WithIndex::WithIndex;
 | 
						|
 | 
						|
        SettingValue<bool> mEnabled{ mIndex, "Groundcover", "enabled" };
 | 
						|
        SettingValue<float> mDensity{ mIndex, "Groundcover", "density", makeClampSanitizerFloat(0, 1) };
 | 
						|
        SettingValue<float> mRenderingDistance{ mIndex, "Groundcover", "rendering distance", makeMaxSanitizerFloat(0) };
 | 
						|
        SettingValue<int> mStompMode{ mIndex, "Groundcover", "stomp mode", makeEnumSanitizerInt({ 0, 1, 2 }) };
 | 
						|
        SettingValue<int> mStompIntensity{ mIndex, "Groundcover", "stomp intensity",
 | 
						|
            makeEnumSanitizerInt({ 0, 1, 2 }) };
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |