adapt: adapt to GMLIB v0.13.1
This commit is contained in:
committed by
GitHub
Unverified
parent
a43ece66f8
commit
6e5fe4393c
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include <ll/api/plugin/NativePlugin.h>
|
#include <ll/api/mod/NativeMod.h>
|
||||||
#include <ll/api/schedule/Scheduler.h>
|
#include <ll/api/schedule/Scheduler.h>
|
||||||
|
|
||||||
namespace Cleaner {
|
namespace Cleaner {
|
||||||
@@ -13,9 +13,9 @@ class Entry {
|
|||||||
public:
|
public:
|
||||||
static Entry& getInstance();
|
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.
|
/// @return True if the plugin is loaded successfully.
|
||||||
bool load();
|
bool load();
|
||||||
@@ -37,7 +37,7 @@ public:
|
|||||||
ServerTimeScheduler& getScheduler();
|
ServerTimeScheduler& getScheduler();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ll::plugin::NativePlugin& mSelf;
|
ll::mod::NativeMod& mSelf;
|
||||||
std::optional<Config> mConfig;
|
std::optional<Config> mConfig;
|
||||||
std::optional<ServerTimeScheduler> mScheduler;
|
std::optional<ServerTimeScheduler> mScheduler;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user