API Reference
On this page
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< QueryServiceResult > | queryService (std::string_view name) |
| LLNDAPI std::vector< QueryServiceResult > | queryServices (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 | |
| ServiceManager & | operator= (ServiceManager const &)=delete |
| ServiceManager & | operator= (ServiceManager &&)=delete |
Static Public Member Functions | |
| static LLNDAPI ServiceManager & | getInstance () |