mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 08:27:46 +00:00
29 lines
525 B
C++
29 lines
525 B
C++
#ifndef CORE_LINKSHELLMGR_H
|
|
#define CORE_LINKSHELLMGR_H
|
|
|
|
#include <memory>
|
|
#include <map>
|
|
|
|
namespace Core {
|
|
class Linkshell;
|
|
|
|
using LinkshellPtr = std::shared_ptr< Linkshell >;
|
|
|
|
class LinkshellMgr
|
|
{
|
|
private:
|
|
std::map< uint64_t, LinkshellPtr > m_linkshellIdMap;
|
|
std::map< std::string, LinkshellPtr > m_linkshellNameMap;
|
|
|
|
LinkshellPtr getLinkshellByName( const std::string& name );
|
|
|
|
LinkshellPtr getLinkshellById( uint64_t lsId );
|
|
|
|
public:
|
|
LinkshellMgr();
|
|
|
|
bool loadLinkshells();
|
|
};
|
|
|
|
}
|
|
#endif //CORE_LINKSHELLMGR_H
|