27 lines
776 B
C++
27 lines
776 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* NewNavigation(std::string& unique_str);
|
|
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_;
|
|
};
|
|
}
|