1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 10:17:46 +00:00
sapphire/src/servers/sapphire_zone/Linkshell/LinkshellMgr.h

31 lines
551 B
C
Raw Normal View History

#ifndef CORE_LINKSHELLMGR_H
#define CORE_LINKSHELLMGR_H
2018-10-25 12:44:51 +11:00
#include <memory>
#include <map>
2018-10-28 21:53:21 +01:00
namespace Core
{
class Linkshell;
2018-10-28 21:53:21 +01:00
using LinkshellPtr = std::shared_ptr< Linkshell >;
2018-10-28 21:53:21 +01:00
class LinkshellMgr
{
private:
std::map< uint64_t, LinkshellPtr > m_linkshellIdMap;
std::map< std::string, LinkshellPtr > m_linkshellNameMap;
2018-10-28 21:53:21 +01:00
LinkshellPtr getLinkshellByName( const std::string& name );
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:
LinkshellMgr();
2018-10-28 21:53:21 +01:00
bool loadLinkshells();
};
}
#endif //CORE_LINKSHELLMGR_H