mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 06:23:53 +00:00
18 lines
462 B
C++
18 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>();
|
|
}
|
|
}
|