15 std::unique_ptr<Impl> impl;
20 Expected<> loadMod(
Manifest manifest)
noexcept;
22 Expected<> unloadMod(std::string_view name)
noexcept;
24 Expected<> enableMod(std::string_view name)
const noexcept;
26 Expected<> disableMod(std::string_view name)
const noexcept;
28 Expected<> onModLoad(std::string_view name)
const noexcept;
30 Expected<> onModUnload(std::string_view name)
const noexcept;
32 Expected<> onModEnable(std::string_view name)
const noexcept;
34 Expected<> onModDisable(std::string_view name)
const noexcept;
39 LLNDAPI
bool addManager(std::shared_ptr<ModManager>
const& manager);
41 LLNDAPI
bool eraseManager(std::string_view type);
43 LLNDAPI
bool hasManager(std::string_view type)
const;
45 LLNDAPI std::shared_ptr<ModManager> getManager(std::string_view type)
const;
47 LLNDAPI std::shared_ptr<ModManager> getManagerForMod(std::string_view name)
const;
53 LLNDAPI
bool hasMod(std::string_view name)
const;
55 LLNDAPI std::string getModType(std::string_view name)
const;
57 LLNDAPI std::shared_ptr<Mod> getMod(std::string_view name)
const;
59 LLAPI
void executeOnModLoad(std::function<
void(std::string_view name)>&& fn)
noexcept;
61 LLAPI
void executeOnModUnload(std::function<
void(std::string_view name)>&& fn)
noexcept;
63 LLAPI
void executeOnModEnable(std::function<
void(std::string_view name)>&& fn)
noexcept;
65 LLAPI
void executeOnModDisable(std::function<
void(std::string_view name)>&& fn)
noexcept;