#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& 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; } }