LeviLamina
Loading...
Searching...
No Matches
ll::service::ServiceManager Class Reference

Public Member Functions

template<IsService T>
event::ListenerPtr subscribeService (std::function< void(std::shared_ptr< T > const &)> const &fn)
 
template<IsService T>
Expected< std::shared_ptr< T > > getService ()
 
LLNDAPI Expected< std::shared_ptr< Service > > getService (ServiceIdView const &id)
 
LLNDAPI std::optional< QueryServiceResultqueryService (std::string_view name)
 
LLAPI bool registerService (std::shared_ptr< Service > const &service, std::shared_ptr< mod::Mod > const &mod=mod::NativeMod::current())
 
LLAPI bool unregisterService (ServiceIdView const &id)
 
LLAPI void unregisterService (mod::Mod const &mod)
 
 ServiceManager (ServiceManager const &)=delete
 
 ServiceManager (ServiceManager &&)=delete
 
ServiceManageroperator= (ServiceManager const &)=delete
 
ServiceManageroperator= (ServiceManager &&)=delete
 

Static Public Member Functions

static LLNDAPI ServiceManagergetInstance ()
 

The documentation for this class was generated from the following file: