f8/cpp/navigation.cc
2019-10-09 14:17:08 +08:00

44 lines
959 B
C++

#include "precompile.h"
#include "behaviac/behaviac.h"
#include "navigation.h"
namespace f8
{
void Navigation::Init()
{
}
void Navigation::UnInit()
{
}
f8::NavigationHandle* Navigation::LoadNavigation(const std::string& res_path,
const std::map<int, std::string>& params)
{
return nullptr;
}
bool Navigation::HasNavigation(const std::string& res_path)
{
return navhandles_.find(res_path) != navhandles_.end();
}
void Navigation::RemoveNavigation(const std::string& res_path)
{
auto itr = navhandles_.find(res_path);
if (itr != navhandles_.end()) {
navhandles_.erase(itr);
}
}
f8::NavigationHandle* Navigation::FindNavigation(const std::string& res_path)
{
auto itr = navhandles_.find(res_path);
return itr != navhandles_.end() ? itr->second : nullptr;
}
}