adapt: adapt to GMLIB v0.13.1

This commit is contained in:
killcerr
2024-07-25 11:10:48 +08:00
committed by GitHub
Unverified
parent a43ece66f8
commit 6e5fe4393c
+5 -5
View File
@@ -1,7 +1,7 @@
#pragma once
#include "Config.h"
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/mod/NativeMod.h>
#include <ll/api/schedule/Scheduler.h>
namespace Cleaner {
@@ -13,9 +13,9 @@ class Entry {
public:
static Entry& getInstance();
Entry(ll::plugin::NativePlugin& self) : mSelf(self) {}
Entry(ll::mod::NativeMod& self) : mSelf(self) {}
[[nodiscard]] ll::plugin::NativePlugin& getSelf() const { return mSelf; }
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }
/// @return True if the plugin is loaded successfully.
bool load();
@@ -37,9 +37,9 @@ public:
ServerTimeScheduler& getScheduler();
private:
ll::plugin::NativePlugin& mSelf;
ll::mod::NativeMod& mSelf;
std::optional<Config> mConfig;
std::optional<ServerTimeScheduler> mScheduler;
};
} // namespace Cleaner
} // namespace Cleaner