LeviLamina
Loading...
Searching...
No Matches
ll::mod::ModManagerRegistry Class Reference

Public Types

enum class  ModCallbackType {
  Load , Unload , Enable , Disable ,
  All = -1
}
using CallbackId = uint64

Public Member Functions

LLNDAPI bool addManager (std::shared_ptr< ModManager > const &manager)
LLNDAPI bool eraseManager (std::string_view type)
LLNDAPI bool hasManager (std::string_view type) const
LLNDAPI std::shared_ptr< ModManagergetManager (std::string_view type) const
LLNDAPI std::shared_ptr< ModManagergetManagerForMod (std::string_view name) const
LLNDAPI coro::Generator< ModManager & > managers () const
LLNDAPI coro::Generator< Mod & > mods () const
LLNDAPI bool hasMod (std::string_view name) const
LLNDAPI std::string getModType (std::string_view name) const
LLNDAPI std::shared_ptr< Mod > getMod (std::string_view name) const
LLAPI CallbackId executeOnMod (ModCallbackType type, std::function< void(std::string_view name)> &&fn, std::weak_ptr< Mod > mod=NativeMod::current()) noexcept
CallbackId executeOnModLoad (std::function< void(std::string_view name)> &&fn, std::weak_ptr< Mod > mod=NativeMod::current()) noexcept
CallbackId executeOnModUnload (std::function< void(std::string_view name)> &&fn, std::weak_ptr< Mod > mod=NativeMod::current()) noexcept
CallbackId executeOnModEnable (std::function< void(std::string_view name)> &&fn, std::weak_ptr< Mod > mod=NativeMod::current()) noexcept
CallbackId executeOnModDisable (std::function< void(std::string_view name)> &&fn, std::weak_ptr< Mod > mod=NativeMod::current()) noexcept
LLAPI bool eraseOnModCallback (CallbackId id) noexcept
LLAPI size_t eraseOnModCallback (std::weak_ptr< Mod > mod, ModCallbackType type=ModCallbackType::All) noexcept

Static Public Member Functions

static LLNDAPI ModManagerRegistry & getInstance ()

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