2020-01-20 22:06:47 +00:00
|
|
|
#include "navigator.hpp"
|
2021-11-05 23:14:41 +00:00
|
|
|
#include "navigatorimpl.hpp"
|
|
|
|
#include "navigatorstub.hpp"
|
|
|
|
#include "recastglobalallocator.hpp"
|
2020-01-20 22:06:47 +00:00
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-11-05 23:14:41 +00:00
|
|
|
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>();
|
|
|
|
}
|
2020-01-20 22:06:47 +00:00
|
|
|
}
|