mirror of https://github.com/OpenMW/openmw.git
Merge branch 'settings_values_navigator' into 'master'
Use settings values for Navigator settings (#6876) See merge request OpenMW/openmw!3468macos_ci_fix
commit
01ee448c61
@ -1,16 +0,0 @@
|
||||
#include "navmeshmode.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
NavMeshMode parseNavMeshMode(std::string_view value)
|
||||
{
|
||||
if (value == "area type")
|
||||
return NavMeshMode::AreaType;
|
||||
if (value == "update frequency")
|
||||
return NavMeshMode::UpdateFrequency;
|
||||
throw std::logic_error("Unsupported navigation mesh rendering mode: " + std::string(value));
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
#ifndef OPENMW_MWRENDER_NAVMESHMODE_H
|
||||
#define OPENMW_MWRENDER_NAVMESHMODE_H
|
||||
|
||||
#include <string_view>
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
enum class NavMeshMode
|
||||
{
|
||||
AreaType,
|
||||
UpdateFrequency,
|
||||
};
|
||||
|
||||
NavMeshMode parseNavMeshMode(std::string_view value);
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,13 @@
|
||||
#ifndef OPENMW_COMPONENTS_SETTINGS_NAVMESHRENDERMODE_H
|
||||
#define OPENMW_COMPONENTS_SETTINGS_NAVMESHRENDERMODE_H
|
||||
|
||||
namespace Settings
|
||||
{
|
||||
enum class NavMeshRenderMode
|
||||
{
|
||||
AreaType,
|
||||
UpdateFrequency,
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue