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

26 lines
706 B
C++

#pragma once
namespace f8
{
class NavigationHandle;
class Navigation : public a8::Singleton<Navigation>
{
private:
Navigation() {};
friend class a8::Singleton<Navigation>;
public:
void Init();
void UnInit();
f8::NavigationHandle* LoadNavigation(const std::string& res_path,
const std::map<int, std::string>& params);
bool HasNavigation(const std::string& res_path);
void RemoveNavigation(const std::string& res_path);
f8::NavigationHandle* FindNavigation(const std::string& res_path);
private:
std::map<std::string, f8::NavigationHandle*> navhandles_;
};
}