mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
19 lines
462 B
C++
19 lines
462 B
C++
#include "navigator.hpp"
|
|
#include "navigatorimpl.hpp"
|
|
#include "navigatorstub.hpp"
|
|
#include "recastglobalallocator.hpp"
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
std::unique_ptr<Navigator> makeNavigator(const Settings& settings)
|
|
{
|
|
DetourNavigator::RecastGlobalAllocator::init();
|
|
return std::make_unique<NavigatorImpl>(settings);
|
|
}
|
|
|
|
std::unique_ptr<Navigator> makeNavigatorStub()
|
|
{
|
|
return std::make_unique<NavigatorStub>();
|
|
}
|
|
}
|