mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-12 05:27:45 +00:00
16 lines
No EOL
341 B
C++
16 lines
No EOL
341 B
C++
#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 );
|
|
}
|
|
} |