#pragma once #include #include #include #include "ForwardsZone.h" namespace Sapphire::World::Manager { class LinkshellMgr { private: std::map< uint64_t, LinkshellPtr > m_linkshellIdMap; std::map< std::string, LinkshellPtr > m_linkshellNameMap; LinkshellPtr getLinkshellByName( const std::string& name ); public: LinkshellMgr() = default; // initialize all linkshells from db to memory bool loadLinkshells(); // create new linkshell entry and insert into db LinkshellPtr createLinkshell( const std::string& name, Entity::Player& player ); void finishLinkshellCreation( const std::string& name, uint32_t result, Entity::Player& player ); // get all linkshells associated with player const std::vector< LinkshellPtr > getPlayerLinkshells( Entity::Player& player ) const; LinkshellPtr getLinkshellById( uint64_t lsId ); }; }