1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-12 05:27:45 +00:00
sapphire/src/common/Service.cpp

16 lines
341 B
C++
Raw Normal View History

#include <Service.h>
namespace Sapphire::Common
{
ServiceContainer* ServiceContainer::pSvcContainer = nullptr;
std::shared_ptr< void > ServiceContainer::get( size_t id )
{
return serviceTable[ id ];
}
void ServiceContainer::set( size_t id, std::shared_ptr< void > svc )
{
serviceTable[ id ] = std::move( svc );
}
}