LeviLamina
Loading...
Searching...
No Matches
ll::mod::Mod Class Reference
Inheritance diagram for ll::mod::Mod:

Public Types

enum class  State { Enabled , Disabled }
using callback_t = bool(Mod&)
using CallbackFn = std::function<callback_t>

Public Member Functions

LLNDAPI Mod (Manifest manifest)
LLNDAPI State getState () const
LLNDAPI Manifest const & getManifest () const
LLNDAPI std::string const & getName () const
LLNDAPI std::string const & getType () const
LLNDAPI std::filesystem::path const & getModDir () const
LLNDAPI std::filesystem::path const & getDataDir () const
LLNDAPI std::filesystem::path const & getConfigDir () const
LLNDAPI std::optional< std::filesystem::path > getWorldDataDir () const
LLNDAPI std::optional< std::filesystem::path > getWorldConfigDir () const
LLNDAPI std::filesystem::path const & getLangDir () const
LLNDAPI std::filesystem::path const & getResourceDir () const
LLNDAPI std::filesystem::path const & getBehaviorDir () const
LLNDAPI io::LoggergetLogger () const
bool isEnabled () const
bool isDisabled () const
LLAPI void onLoad (CallbackFn func) noexcept
LLAPI void onUnload (CallbackFn func) noexcept
LLAPI void onEnable (CallbackFn func) noexcept
LLAPI void onDisable (CallbackFn func) noexcept

Protected Member Functions

LLAPI void release () noexcept
LLAPI void setState (State state) const
LLNDAPI bool hasOnLoad () const noexcept
LLNDAPI bool hasOnUnload () const noexcept
LLNDAPI bool hasOnEnable () const noexcept
LLNDAPI bool hasOnDisable () const noexcept
LLAPI Expected onLoad () noexcept
LLAPI Expected onUnload () noexcept
LLAPI Expected onEnable () noexcept
LLAPI Expected onDisable () noexcept

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