API Reference
On this page
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::Logger & | getLogger () 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 |