2018-12-02 02:01:41 +01:00
|
|
|
#ifndef SAPPHIRE_LINKSHELLMGR_H
|
|
|
|
#define SAPPHIRE_LINKSHELLMGR_H
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-10-25 12:44:51 +11:00
|
|
|
#include <memory>
|
2017-08-28 18:36:51 +02:00
|
|
|
#include <map>
|
2018-12-02 02:01:41 +01:00
|
|
|
#include "ForwardsZone.h"
|
2018-12-22 22:25:03 +01:00
|
|
|
#include "BaseManager.h"
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-12-02 02:01:41 +01:00
|
|
|
namespace Sapphire::World::Manager
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-12-22 22:25:03 +01:00
|
|
|
class LinkshellMgr : public Manager::BaseManager
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::map< uint64_t, LinkshellPtr > m_linkshellIdMap;
|
|
|
|
std::map< std::string, LinkshellPtr > m_linkshellNameMap;
|
2018-08-29 21:40:59 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
LinkshellPtr getLinkshellByName( const std::string& name );
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
LinkshellPtr getLinkshellById( uint64_t lsId );
|
2017-08-28 23:43:52 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
2018-12-22 22:25:03 +01:00
|
|
|
LinkshellMgr( FrameworkPtr pFw );
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
bool loadLinkshells();
|
|
|
|
};
|
2017-08-28 18:36:51 +02:00
|
|
|
|
|
|
|
}
|
2018-12-02 02:01:41 +01:00
|
|
|
#endif //SAPPHIRE_LINKSHELLMGR_H
|