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

30 lines
541 B
C
Raw Normal View History

#ifndef CORE_LINKSHELLMGR_H
#define CORE_LINKSHELLMGR_H
#include <boost/shared_ptr.hpp>
#include <map>
namespace Core {
class Linkshell;
using LinkshellPtr = boost::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 );
2017-08-28 23:43:52 +02:00
public:
LinkshellMgr();
bool loadLinkshells();
};
}
#endif //CORE_LINKSHELLMGR_H